gpg: Add push/pop found state feature to keydb.
authorWerner Koch <wk@gnupg.org>
Fri, 8 May 2015 13:51:11 +0000 (15:51 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 8 May 2015 13:51:11 +0000 (15:51 +0200)
commit3c439c0447f8a7468a61bbdc4c9a101ef2451dcb
treef7c1e9085cf66dc7a0db3e82dababdc22054a2e4
parentb772e459fa91cdc7facd95227ebc0faba20a7003
gpg: Add push/pop found state feature to keydb.

* g10/keydb.c (keydb_handle): Add field saved_found.
(keydb_new): Init new field.
(keydb_push_found_state, keydb_pop_found_state): New.
* g10/keyring.c (kyring_handle): Add field saved_found.
(keyring_push_found_state, keyring_pop_found_state): New.
--

We have the same feature in gpgsm.  It is very useful to check for an
unambiguous user id with a follow up update of the keyblock.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keydb.c
g10/keydb.h
g10/keyring.c
g10/keyring.h