diff options
author | Werner Koch <[email protected]> | 2025-05-13 13:46:41 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-05-13 13:47:03 +0000 |
commit | eb2a90d343a4b346ccd44374214932085fd60390 (patch) | |
tree | 96907a051c33c9f326a845a4a0a5d52b40f5df23 | |
parent | gpgsm: Just print a note for an empty subject during import. (diff) | |
download | gnupg-eb2a90d343a4b346ccd44374214932085fd60390.tar.gz gnupg-eb2a90d343a4b346ccd44374214932085fd60390.zip |
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
-rw-r--r-- | g10/keylist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index 3f81511bf..fd61b2b4a 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -1670,7 +1670,8 @@ list_keyblock_simple (ctrl_t ctrl, kbnode_t keyblock) if (uid->attrib_data) continue; - if (uid->flags.expired || uid->flags.revoked) + if ((uid->flags.expired || uid->flags.revoked) + && !(opt.list_options & LIST_SHOW_UNUSABLE_UIDS)) continue; mbox = mailbox_from_userid (uid->name, 0); |