summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-08-08 13:04:12 +0200
committerWerner Koch <wk@gnupg.org>2017-08-08 13:05:50 +0200
commit0a8e20c4c639f0c491e2af5ac5fb97005196422b (patch)
tree3a4dc7c6d70b21afeb7bf2230ac47042a5f835f3 /sm
parentgpg: Add option '--disable-dirmngr'. (diff)
downloadgnupg2-0a8e20c4c639f0c491e2af5ac5fb97005196422b.tar.xz
gnupg2-0a8e20c4c639f0c491e2af5ac5fb97005196422b.zip
sm: Always print the keygrip in colon mode.
* sm/keylist.c (list_cert_colon): Always print the keygrip as described in the manual. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'sm')
-rw-r--r--sm/keylist.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sm/keylist.c b/sm/keylist.c
index abec049b7..24c86e18a 100644
--- a/sm/keylist.c
+++ b/sm/keylist.c
@@ -541,16 +541,16 @@ list_cert_colon (ctrl_t ctrl, ksba_cert_t cert, unsigned int validity,
xfree (fpr); fpr = NULL; chain_id = NULL;
xfree (chain_id_buffer); chain_id_buffer = NULL;
- if (opt.with_key_data)
+ /* Always print the keygrip. */
+ if ( (p = gpgsm_get_keygrip_hexstring (cert)))
{
- if ( (p = gpgsm_get_keygrip_hexstring (cert)))
- {
- es_fprintf (fp, "grp:::::::::%s:\n", p);
- xfree (p);
- }
- print_key_data (cert, fp);
+ es_fprintf (fp, "grp:::::::::%s:\n", p);
+ xfree (p);
}
+ if (opt.with_key_data)
+ print_key_data (cert, fp);
+
kludge_uid = NULL;
for (idx=0; (p = ksba_cert_get_subject (cert,idx)); idx++)
{