diff options
author | Werner Koch <[email protected]> | 2019-01-29 18:52:08 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-01-29 19:10:11 +0000 |
commit | c128667b3cba749dd14262e032d4c260a2b0acd3 (patch) | |
tree | 69a5bd841fa2f85d8c43e05b6e57b70ffb9cc32c /common/stringhelp.h | |
parent | common: Provide some convenient OpenPGP related constants. (diff) | |
download | gnupg-c128667b3cba749dd14262e032d4c260a2b0acd3.tar.gz gnupg-c128667b3cba749dd14262e032d4c260a2b0acd3.zip |
gpg: Implement searching keys via keygrip.
* kbx/keybox-defs.h (struct _keybox_openpgp_key_info): Add field grip.
* kbx/keybox-openpgp.c (struct keyparm_s): New.
(keygrip_from_keyparm): New.
(parse_key): Compute keygrip.
* kbx/keybox-search.c (blob_openpgp_has_grip): New.
(has_keygrip): Call it.
--
This has been marked for too long as not yet working. However, it is
a pretty useful feature and will come pretty handy when looking for
all keys matching one keygrip.
Can be optimized a lot by storing the keygrip in the meta data. This
will be done along with the upgrade of KBX for v5 fingerprints.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/stringhelp.h')
0 files changed, 0 insertions, 0 deletions