aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb-private.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-10-01 18:11:54 +0000
committerWerner Koch <[email protected]>2019-10-01 18:11:54 +0000
commit63dbc817e7dcc6edc757281f09e1ca80500ab2d1 (patch)
tree3edd3a84a56f1151b6be4d1989e435e54f66af95 /g10/keydb-private.h
parentkbx: Add first version of STORE command to keyboxd. (diff)
downloadgnupg-63dbc817e7dcc6edc757281f09e1ca80500ab2d1.tar.gz
gnupg-63dbc817e7dcc6edc757281f09e1ca80500ab2d1.zip
gpg: Read the UBID from the keybox and detect wrong blob type.
* g10/keydb-private.h (struct keydb_handle_s): Add fields for UBID. * g10/call-keyboxd.c (search_status_cb): New. (keydb_search): Set new UBID fields. -- The UBID is not yet used but may come handy later. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/keydb-private.h')
-rw-r--r--g10/keydb-private.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/g10/keydb-private.h b/g10/keydb-private.h
index efef82289..47a09ca93 100644
--- a/g10/keydb-private.h
+++ b/g10/keydb-private.h
@@ -92,10 +92,16 @@ struct keydb_handle_s
/* A shallow pointer with the CTRL used to create this handle. */
ctrl_t ctrl;
- /* Connection info which also keep the local state. (This is points
+ /* Connection info which also keeps the local state. (This points
* into the CTRL->keybox_local list.) */
keyboxd_local_t kbl;
+ /* Various flags. */
+ unsigned int last_ubid_valid:1;
+
+ /* The UBID of the last returned keyblock. */
+ unsigned char last_ubid[20];
+
/* END USE_KEYBOXD */
/* BEGIN !USE_KEYBOXD */