summaryrefslogtreecommitdiffstats
path: root/g10/keydb-private.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-09-22 16:20:41 +0200
committerWerner Koch <wk@gnupg.org>2020-09-22 16:20:41 +0200
commit183509756179fadd95d1cc740047b94dc16bb279 (patch)
treec020114c292cb274a394d6bb9f1500cd61448e9a /g10/keydb-private.h
parentsm: Fix returning of the ephemeral flag in keyboxd mode. (diff)
downloadgnupg2-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.h5
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 */