1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-05-14 08:13:25 +02:00

gpg: Make combination of show-only-fpr-mbox and show-unusable-uid work.

* g10/keylist.c (list_keyblock_simple): Take care of
show-unusable-uids.
--

This allows to upload revoked keys to a WKD.

Suggested-by: Uwe Kleine-König
This commit is contained in:
Werner Koch 2025-05-13 15:46:41 +02:00
parent e57a2e65d9
commit eb2a90d343
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1670,7 +1670,8 @@ list_keyblock_simple (ctrl_t ctrl, kbnode_t keyblock)
if (uid->attrib_data) if (uid->attrib_data)
continue; continue;
if (uid->flags.expired || uid->flags.revoked) if ((uid->flags.expired || uid->flags.revoked)
&& !(opt.list_options & LIST_SHOW_UNUSABLE_UIDS))
continue; continue;
mbox = mailbox_from_userid (uid->name, 0); mbox = mailbox_from_userid (uid->name, 0);