From 8eab483a1c4817a2946624c7305f464089d1875e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 23 Jun 2014 14:57:32 +0200 Subject: [PATCH] Print hash algorithm in sig records * g10/keylist.c (list_keyblock_colon): Print field 16. -- We have this info already in gnupg-2 and it is easy to add it to 1.4. Debian-bug-id: 672658 Patch written and tested by Daniel Leidert. See above. --- g10/keylist.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/g10/keylist.c b/g10/keylist.c index 6618a7fbe..27283087a 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -1370,19 +1370,15 @@ list_keyblock_colon( KBNODE keyblock, int secret, int fpr ) print_string( stdout, p, n, ':' ); xfree(p); } - printf(":%02x%c:", sig->sig_class,sig->flags.exportable?'x':'l'); + printf(":%02x%c::", sig->sig_class,sig->flags.exportable?'x':'l'); if(opt.no_sig_cache && opt.check_sigs && fprokay) { - printf(":"); - for (i=0; i < fplen ; i++ ) printf ("%02X", fparray[i] ); - - printf(":"); } - printf("\n"); + printf(":::%d:\n", sig->digest_algo); if(opt.show_subpackets) print_subpackets_colon(sig);