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:
parent
8361e13ef2
commit
f3198f9d70
@ -789,7 +789,10 @@ list_one_kinfo (card_info_t info, key_info_t kinfo,
|
|||||||
}
|
}
|
||||||
else /* Print the primary key as fallback. */
|
else /* Print the primary key as fallback. */
|
||||||
print_shax_fpr (fp, pubkey->fpr, pubkey->fprlen);
|
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. */
|
/* Find the primary or subkey of that key. */
|
||||||
for (; pubkey; pubkey = pubkey->next)
|
for (; pubkey; pubkey = pubkey->next)
|
||||||
if (pubkey->grip_valid
|
if (pubkey->grip_valid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user