summaryrefslogtreecommitdiffstats
path: root/sm/keydb.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2006-05-22 16:35:04 +0200
committerMarcus Brinkmann <mb@g10code.com>2006-05-22 16:35:04 +0200
commit11544e7184b0eab8f3058ee3c5f87e94118a7bf3 (patch)
tree67f5b64a79b37cd78c866edd41bb9e6895deaddb /sm/keydb.h
parentAdded sample certificates. (diff)
downloadgnupg2-11544e7184b0eab8f3058ee3c5f87e94118a7bf3.tar.xz
gnupg2-11544e7184b0eab8f3058ee3c5f87e94118a7bf3.zip
2006-05-19 Marcus Brinkmann <marcus@g10code.de>
* keydb.c (keydb_insert_cert): Do not lock here, but only check if it is locked. (keydb_store_cert): Lock here. * keydb.h (keydb_delete): Accept new argument UNLOCK. * keydb.c (keydb_delete): Likewise. Only unlock if this is set. * delete.c (delete_one): Add new argument to invocation of keydb_delete.
Diffstat (limited to 'sm/keydb.h')
-rw-r--r--sm/keydb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/keydb.h b/sm/keydb.h
index 924ad77c4..fb4001b64 100644
--- a/sm/keydb.h
+++ b/sm/keydb.h
@@ -53,7 +53,7 @@ int keydb_get_cert (KEYDB_HANDLE hd, ksba_cert_t *r_cert);
int keydb_insert_cert (KEYDB_HANDLE hd, ksba_cert_t cert);
int keydb_update_cert (KEYDB_HANDLE hd, ksba_cert_t cert);
-int keydb_delete (KEYDB_HANDLE hd);
+int keydb_delete (KEYDB_HANDLE hd, int unlock);
int keydb_locate_writable (KEYDB_HANDLE hd, const char *reserved);
void keydb_rebuild_caches (void);