mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
Print the hash algorithm in colon mode key listing.
* g10/keylist.c (list_keyblock_colon): Print digest_algo.
This commit is contained in:
parent
f8a8c71c41
commit
fc00d3fcb2
2
NEWS
2
NEWS
@ -9,6 +9,8 @@ Noteworthy changes in version 2.1.0beta4 (unreleased)
|
|||||||
* Removed support for the original HKP keyserver which is not anymore
|
* Removed support for the original HKP keyserver which is not anymore
|
||||||
used by any site.
|
used by any site.
|
||||||
|
|
||||||
|
* The hash algorithm is now printed for sig records in key listings.
|
||||||
|
|
||||||
|
|
||||||
Noteworthy changes in version 2.1.0beta3 (2011-12-20)
|
Noteworthy changes in version 2.1.0beta3 (2011-12-20)
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
|
@ -3,7 +3,7 @@ Format of colon listings
|
|||||||
========================
|
========================
|
||||||
First an example:
|
First an example:
|
||||||
|
|
||||||
$ gpg --fixed-list-mode --with-colons --list-keys \
|
$ gpg --with-colons --list-keys \
|
||||||
--with-fingerprint --with-fingerprint wk@gnupg.org
|
--with-fingerprint --with-fingerprint wk@gnupg.org
|
||||||
|
|
||||||
pub:f:1024:17:6C7EE1B8621CC013:899817715:1055898235::m:::scESC:
|
pub:f:1024:17:6C7EE1B8621CC013:899817715:1055898235::m:::scESC:
|
||||||
@ -151,6 +151,10 @@ record; gpg2 does this by default and the option is a dummy.
|
|||||||
15. Field Used in sec/sbb to print the serial number of a token
|
15. Field Used in sec/sbb to print the serial number of a token
|
||||||
(internal protect mode 1002) or a '#' if that key is a
|
(internal protect mode 1002) or a '#' if that key is a
|
||||||
simple stub (internal protect mode 1001)
|
simple stub (internal protect mode 1001)
|
||||||
|
16. Field: For sig records, this is the used hash algorithm:
|
||||||
|
2 = SHA-1
|
||||||
|
8 = SHA-256
|
||||||
|
(for other id's see include/cipher.h)
|
||||||
|
|
||||||
All dates are displayed in the format yyyy-mm-dd unless you use the
|
All dates are displayed in the format yyyy-mm-dd unless you use the
|
||||||
option --fixed-list-mode in which case they are displayed as seconds
|
option --fixed-list-mode in which case they are displayed as seconds
|
||||||
|
@ -1398,20 +1398,16 @@ list_keyblock_colon (KBNODE keyblock, int secret, int fpr)
|
|||||||
es_write_sanitized (es_stdout, p, n, ":", NULL);
|
es_write_sanitized (es_stdout, p, n, ":", NULL);
|
||||||
xfree (p);
|
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');
|
sig->flags.exportable ? 'x' : 'l');
|
||||||
|
|
||||||
if (opt.no_sig_cache && opt.check_sigs && fprokay)
|
if (opt.no_sig_cache && opt.check_sigs && fprokay)
|
||||||
{
|
{
|
||||||
es_putc (':', es_stdout);
|
|
||||||
|
|
||||||
for (i = 0; i < fplen; i++)
|
for (i = 0; i < fplen; i++)
|
||||||
es_fprintf (es_stdout, "%02X", fparray[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)
|
if (opt.show_subpackets)
|
||||||
print_subpackets_colon (sig);
|
print_subpackets_colon (sig);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user