diff options
author | Werner Koch <wk@gnupg.org> | 2014-06-02 15:55:00 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-06-02 15:55:00 +0200 |
commit | 42c043a8ad542c131917879c9b458f234b4bb645 (patch) | |
tree | 1847bf9f4161c5fb0f3bd893fdc5a6e87f4336ec /kbx/keybox.h | |
parent | gpg: Fix bug parsing a zero length user id. (diff) | |
download | gnupg2-42c043a8ad542c131917879c9b458f234b4bb645.tar.xz gnupg2-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 'kbx/keybox.h')
-rw-r--r-- | kbx/keybox.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kbx/keybox.h b/kbx/keybox.h index 4c447a577..96c6db549 100644 --- a/kbx/keybox.h +++ b/kbx/keybox.h @@ -64,6 +64,8 @@ int keybox_is_writable (void *token); KEYBOX_HANDLE keybox_new (void *token, int secret); void keybox_release (KEYBOX_HANDLE hd); +void keybox_push_found_state (KEYBOX_HANDLE hd); +void keybox_pop_found_state (KEYBOX_HANDLE hd); const char *keybox_get_resource_name (KEYBOX_HANDLE hd); int keybox_set_ephemeral (KEYBOX_HANDLE hd, int yes); |