mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
f382984966
commit
c128667b3c
5 changed files with 204 additions and 24 deletions
|
@ -135,7 +135,7 @@ RFC-2253 encoded DN of the issuer. See note above.
|
|||
@item By keygrip.
|
||||
This is indicated by an ampersand followed by the 40 hex digits of a
|
||||
keygrip. @command{gpgsm} prints the keygrip when using the command
|
||||
@option{--dump-cert}. It does not yet work for OpenPGP keys.
|
||||
@option{--dump-cert}.
|
||||
|
||||
@cartouche
|
||||
@example
|
||||
|
@ -171,6 +171,3 @@ Using the RFC-2253 format of DNs has the drawback that it is not
|
|||
possible to map them back to the original encoding, however we don't
|
||||
have to do this because our key database stores this encoding as meta
|
||||
data.
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue