diff options
author | Werner Koch <[email protected]> | 2022-10-25 09:01:41 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-10-25 09:57:23 +0000 |
commit | f3198f9d705afe3cd26f4ee7ca42633e62fadc6a (patch) | |
tree | 984d2b131970e16f1a59286ed6285754a9dd6468 | |
parent | scd:nks: Support non-ESIGN signing with the Signature Card v2 (diff) | |
download | gnupg-f3198f9d705afe3cd26f4ee7ca42633e62fadc6a.tar.gz gnupg-f3198f9d705afe3cd26f4ee7ca42633e62fadc6a.zip |
card: Also show fingerprints of known X.509 certificates
* tools/gpg-card.c (list_one_kinfo): Show fpr.
--
The fingerprint is actually more useful than the Subject-DN.
-rw-r--r-- | tools/gpg-card.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gpg-card.c b/tools/gpg-card.c index d851f99fc..aed71f57e 100644 --- a/tools/gpg-card.c +++ b/tools/gpg-card.c @@ -789,7 +789,10 @@ list_one_kinfo (card_info_t info, key_info_t kinfo, } else /* Print the primary key as fallback. */ print_shax_fpr (fp, pubkey->fpr, pubkey->fprlen); - + } + if (kb->protocol == GNUPG_PROTOCOL_OPENPGP + || kb->protocol == GNUPG_PROTOCOL_CMS) + { /* Find the primary or subkey of that key. */ for (; pubkey; pubkey = pubkey->next) if (pubkey->grip_valid |