mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Add new option --with-keygrip
This commit is contained in:
parent
002b30e75c
commit
a78335c9ce
10 changed files with 75 additions and 5 deletions
10
sm/keylist.c
10
sm/keylist.c
|
@ -1216,6 +1216,16 @@ list_cert_std (ctrl_t ctrl, ksba_cert_t cert, estream_t fp, int have_secret,
|
|||
es_fprintf (fp, " fingerprint: %s\n", dn?dn:"error");
|
||||
xfree (dn);
|
||||
|
||||
if (opt.with_keygrip)
|
||||
{
|
||||
dn = gpgsm_get_keygrip_hexstring (cert);
|
||||
if (dn)
|
||||
{
|
||||
es_fprintf (fp, " keygrip: %s\n", dn);
|
||||
xfree (dn);
|
||||
}
|
||||
}
|
||||
|
||||
if (have_secret)
|
||||
{
|
||||
char *cardsn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue