summaryrefslogtreecommitdiffstats
path: root/sm/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-06-19 10:30:10 +0200
committerWerner Koch <wk@gnupg.org>2002-06-19 10:30:10 +0200
commit52146943d10e5a72ef8b4fef8e4c24a3dbb6c5a1 (patch)
treeb2a5e1e00be63bde7464d6063e69c3c2cac577e1 /sm/keydb.h
parent* keybox-init.c (keybox_set_ephemeral): New. (diff)
downloadgnupg2-52146943d10e5a72ef8b4fef8e4c24a3dbb6c5a1.tar.xz
gnupg2-52146943d10e5a72ef8b4fef8e4c24a3dbb6c5a1.zip
* call-agent.c (learn_cb): Use log_info instead of log_error on
successful import. * keydb.c (keydb_set_ephemeral): New. (keydb_store_cert): New are ephemeral, changed all callers. * keylist.c (list_external_cb): Store cert as ephemeral. * export.c (gpgsm_export): Kludge to export epehmeral certificates. * gpgsm.c (main): New command --list-external-keys.
Diffstat (limited to 'sm/keydb.h')
-rw-r--r--sm/keydb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sm/keydb.h b/sm/keydb.h
index 9032c5296..0721f431a 100644
--- a/sm/keydb.h
+++ b/sm/keydb.h
@@ -32,6 +32,7 @@ typedef struct keydb_handle *KEYDB_HANDLE;
int keydb_add_resource (const char *url, int force, int secret);
KEYDB_HANDLE keydb_new (int secret);
void keydb_release (KEYDB_HANDLE hd);
+int keydb_set_ephemeral (KEYDB_HANDLE hd, int yes);
const char *keydb_get_resource_name (KEYDB_HANDLE hd);
#if 0 /* pgp stuff */
@@ -62,7 +63,7 @@ int keydb_search_subject (KEYDB_HANDLE hd, const char *issuer);
int keydb_classify_name (const char *name, KEYDB_SEARCH_DESC *desc);
-int keydb_store_cert (KsbaCert cert);
+int keydb_store_cert (KsbaCert cert, int ephemeral);
#endif /*GNUPG_KEYDB_H*/