diff options
author | Werner Koch <[email protected]> | 2012-05-24 08:13:39 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-05-24 08:13:39 +0000 |
commit | fc00d3fcb201476b3495f47138fa35b71c52f403 (patch) | |
tree | 46b40fecd954bbbd41e1f8fb2ab41b9650dedf06 /g10/keylist.c | |
parent | Fix type conflict warning. (diff) | |
download | gnupg-fc00d3fcb201476b3495f47138fa35b71c52f403.tar.gz gnupg-fc00d3fcb201476b3495f47138fa35b71c52f403.zip |
Print the hash algorithm in colon mode key listing.
* g10/keylist.c (list_keyblock_colon): Print digest_algo.
Diffstat (limited to 'g10/keylist.c')
-rw-r--r-- | g10/keylist.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index e8ccabc71..87f3a4bb0 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -1398,20 +1398,16 @@ list_keyblock_colon (KBNODE keyblock, int secret, int fpr) es_write_sanitized (es_stdout, p, n, ":", NULL); xfree (p); } - es_fprintf (es_stdout, ":%02x%c:", sig->sig_class, + es_fprintf (es_stdout, ":%02x%c::", sig->sig_class, sig->flags.exportable ? 'x' : 'l'); if (opt.no_sig_cache && opt.check_sigs && fprokay) { - es_putc (':', es_stdout); - for (i = 0; i < fplen; i++) es_fprintf (es_stdout, "%02X", fparray[i]); - - es_putc (':', es_stdout); } - es_fprintf (es_stdout, "\n"); + es_fprintf (es_stdout, ":::%d:\n", sig->digest_algo); if (opt.show_subpackets) print_subpackets_colon (sig); |