1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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.
This commit is contained in:
Werner Koch 2022-10-25 11:01:41 +02:00
parent 8361e13ef2
commit f3198f9d70
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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