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