Home GnuPG
Diffusion GnuPG abe69b2094dd

gpg: Look up user ID to revoke by UID hash

Description

gpg: Look up user ID to revoke by UID hash

* g10/keyedit.c (find_userid_by_namehash, find_userid): New.
(keyedit_quick_revuid): Use find_userid() instead of iterating over the
nodes of the keyblock.
* tests/openpgp/quick-key-manipulation.scm: Add test for revoking a
user ID specified by its hash.

This makes it possible to specify the user ID to revoke as UID hash when
calling --quick-revoke-uid.

(cherry picked from commit 35b17550706c8b7479ae96654feb97c05263cfc9)

Details

Provenance
ikloeckerAuthored on Apr 21 2022, 4:43 PM
wernerCommitted on Jul 27 2022, 4:35 PM
Parents
rG73a98c139691: wkd: Bind the address to the nonce.
Branches
Unknown
Tags
Unknown
Tasks
T5936: gpg: Support specifiying user ID to revoke as UID hash for --quick-revoke-uid