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 /doc/specify-user-id.texi | |
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 'doc/specify-user-id.texi')
-rw-r--r-- | doc/specify-user-id.texi | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/specify-user-id.texi b/doc/specify-user-id.texi index b363c2ace..64e354bdf 100644 --- a/doc/specify-user-id.texi +++ b/doc/specify-user-id.texi @@ -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. - - - |