aboutsummaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-07-22 09:37:36 +0000
committerWerner Koch <[email protected]>2004-07-22 09:37:36 +0000
commitd9147773b4e5eda669ebd79454052d0a191cde55 (patch)
tree85c3c18c263f05d88fff76bed3715a6cbb6bbc29 /sm
parent* Makefile.am (sm): Build kbx only if gpgsm is to be build. (diff)
downloadgnupg-d9147773b4e5eda669ebd79454052d0a191cde55.tar.gz
gnupg-d9147773b4e5eda669ebd79454052d0a191cde55.zip
* trustlist.c (read_list): Allow colons in the fingerprint.
(headerblurb): Rephrased. * gpg-agent.c (handle_connections): Increase the stack size ot 256k. * de.po: Updated. * scdaemon.c (main): Bumbed thread stack size up to 512k. * keylist.c (list_cert_raw): Print the keygrip.
Diffstat (limited to 'sm')
-rw-r--r--sm/ChangeLog4
-rw-r--r--sm/keylist.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index 5571540be..b9780cc90 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,3 +1,7 @@
+2004-07-22 Werner Koch <[email protected]>
+
+ * keylist.c (list_cert_raw): Print the keygrip.
+
2004-07-20 Werner Koch <[email protected]>
* certchain.c (gpgsm_validate_chain): The trust check didn't
diff --git a/sm/keylist.c b/sm/keylist.c
index 27c67ded3..0fd06ca13 100644
--- a/sm/keylist.c
+++ b/sm/keylist.c
@@ -500,7 +500,7 @@ print_names_raw (FILE *fp, int indent, ksba_name_t name)
/* List one certificate in raw mode useful to have a closer look at
- the certificate. This one does not beautification and only minimal
+ the certificate. This one does no beautification and only minimal
output sanitation. It is mainly useful for debugging. */
static void
list_cert_raw (ctrl_t ctrl, ksba_cert_t cert, FILE *fp, int have_secret,
@@ -559,6 +559,10 @@ list_cert_raw (ctrl_t ctrl, ksba_cert_t cert, FILE *fp, int have_secret,
fprintf (fp, " md5_fpr: %s\n", dn?dn:"error");
xfree (dn);
+ dn = gpgsm_get_keygrip_hexstring (cert);
+ fprintf (fp, " keygrip: %s\n", dn?dn:"error");
+ xfree (dn);
+
ksba_cert_get_validity (cert, 0, t);
fputs (" notBefore: ", fp);
gpgsm_print_time (fp, t);