diff options
author | Werner Koch <wk@gnupg.org> | 2020-09-22 16:20:41 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-09-22 16:20:41 +0200 |
commit | 183509756179fadd95d1cc740047b94dc16bb279 (patch) | |
tree | c020114c292cb274a394d6bb9f1500cd61448e9a /g10/keydb-private.h | |
parent | sm: Fix returning of the ephemeral flag in keyboxd mode. (diff) | |
download | gnupg2-183509756179fadd95d1cc740047b94dc16bb279.tar.xz gnupg2-183509756179fadd95d1cc740047b94dc16bb279.zip |
gpg: Set the found-by flags in the keyblock in keyboxd mode.
* g10/keydb-private.h (struct keydb_handle_s): Add fields to return
the ordinals of the last found blob.
* g10/call-keyboxd.c (keydb_get_keyblock): Pass them to the keyblock
parser.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/keydb-private.h')
-rw-r--r-- | g10/keydb-private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/keydb-private.h b/g10/keydb-private.h index c54e73f69..1b661a423 100644 --- a/g10/keydb-private.h +++ b/g10/keydb-private.h @@ -102,6 +102,11 @@ struct keydb_handle_s /* The UBID of the last returned keyblock. */ unsigned char last_ubid[UBID_LEN]; + /* The ordinals from the last search operations; valid if + * last_ubid_valid is set. */ + int last_uid_no; + int last_pk_no; + /* END USE_KEYBOXD */ /* BEGIN !USE_KEYBOXD */ |