* main.h: Create S2K_DIGEST_ALGO macro so we do not need to always set
[gnupg.git] / kbx / keybox-init.c
index b1d2799..e11c4f0 100644 (file)
@@ -120,7 +120,7 @@ int
 keybox_set_ephemeral (KEYBOX_HANDLE hd, int yes)
 {
   if (!hd)
-    return KEYBOX_Invalid_Handle
+    return gpg_error (GPG_ERR_INV_HANDLE)
   hd->ephemeral = yes;
   return 0;
 }