mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
c4506f624e
commit
0a8e20c4c6
2 changed files with 13 additions and 11 deletions
14
sm/keylist.c
14
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++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue