From 42c043a8ad542c131917879c9b458f234b4bb645 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 2 Jun 2014 15:55:00 +0200 Subject: 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. --- sm/keydb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sm/keydb.h') 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); -- cgit v1.2.3