aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-card.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-10-25 09:01:41 +0000
committerWerner Koch <[email protected]>2022-10-25 09:57:23 +0000
commitf3198f9d705afe3cd26f4ee7ca42633e62fadc6a (patch)
tree984d2b131970e16f1a59286ed6285754a9dd6468 /tools/gpg-card.c
parentscd:nks: Support non-ESIGN signing with the Signature Card v2 (diff)
downloadgnupg-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.
Diffstat (limited to 'tools/gpg-card.c')
-rw-r--r--tools/gpg-card.c5
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