aboutsummaryrefslogtreecommitdiffstats
path: root/sm/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-06-02 13:55:00 +0000
committerWerner Koch <[email protected]>2014-06-02 13:55:00 +0000
commit42c043a8ad542c131917879c9b458f234b4bb645 (patch)
tree1847bf9f4161c5fb0f3bd893fdc5a6e87f4336ec /sm/keydb.h
parentgpg: Fix bug parsing a zero length user id. (diff)
downloadgnupg-42c043a8ad542c131917879c9b458f234b4bb645.tar.gz
gnupg-42c043a8ad542c131917879c9b458f234b4bb645.zip
gpgsm: Add a way to save a found state.
* kbx/keybox-defs.h (keybox_found_s): New. (keybox_handle): Factor FOUND out to above. Add saved_found. * kbx/keybox-init.c (keybox_release): Release saved_found. (keybox_push_found_state, keybox_pop_found_state): New. * sm/keydb.c (keydb_handle): Add field saved_found. (keydb_new): Init it. (keydb_push_found_state, keydb_pop_found_state): New.
Diffstat (limited to 'sm/keydb.h')
-rw-r--r--sm/keydb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/keydb.h b/sm/keydb.h
index 6e432f893..aec31c399 100644
--- a/sm/keydb.h
+++ b/sm/keydb.h
@@ -43,6 +43,8 @@ gpg_error_t keydb_get_flags (KEYDB_HANDLE hd, int which, int idx,
unsigned int *value);
gpg_error_t keydb_set_flags (KEYDB_HANDLE hd, int which, int idx,
unsigned int value);
+void keydb_push_found_state (KEYDB_HANDLE hd);
+void keydb_pop_found_state (KEYDB_HANDLE hd);
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);