mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
c7293a4d12
commit
63dbc817e7
2 changed files with 46 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue