From 183509756179fadd95d1cc740047b94dc16bb279 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 22 Sep 2020 16:20:41 +0200 Subject: 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 --- g10/keydb-private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'g10/keydb-private.h') 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 */ -- cgit v1.2.3