aboutsummaryrefslogtreecommitdiffstats
path: root/sm/keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-10-08 11:11:08 +0000
committerWerner Koch <[email protected]>2010-10-08 11:11:08 +0000
commita78335c9ce3956a1e6d6f1a17e60673b3ebce5fb (patch)
tree36bca72ac73e36d6564485685e1245787b39884d /sm/keylist.c
parentImport fixes. (diff)
downloadgnupg-a78335c9ce3956a1e6d6f1a17e60673b3ebce5fb.tar.gz
gnupg-a78335c9ce3956a1e6d6f1a17e60673b3ebce5fb.zip
Add new option --with-keygrip
Diffstat (limited to 'sm/keylist.c')
-rw-r--r--sm/keylist.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sm/keylist.c b/sm/keylist.c
index feb117d10..4f876ff60 100644
--- a/sm/keylist.c
+++ b/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;