Home GnuPG
Diffusion GnuPG f6d7b3f1ee5e

gpg: Set the node flags while retrieving a keyblock.
f6d7b3f1ee5eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Set the node flags while retrieving a keyblock.

* g10/keydb.c (parse_keyblock_image): Add args PK_NO and UID_NO and
set the note flags accordingly.
(keydb_get_keyblock): Transfer PK_NO and UID_NO to parse_keyblock_image.
* kbx/keybox-search.c (blob_cmp_fpr, blob_cmp_fpr_part)
(blob_cmp_name, blob_cmp_mail): Return the key/user number.
(keybox_search): Set the key and user number into the found struct.
(keybox_get_keyblock): Add args R_PK_NO and R_UID_NO and set them from
the found struct.

getkey.c needs to know whether the correct subkey was found. Thus we
need to set the node flags the same way we did it with the keyring
storage.

Details

Provenance
wernerAuthored on Jan 7 2013, 9:14 PM
Parents
rG0baedfd25a4b: New function log_clock.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGf6d7b3f1ee5e: gpg: Set the node flags while retrieving a keyblock. (authored by Werner Koch <wk@gnupg.org>).Jan 7 2013, 9:14 PM