Print hash algorithm in sig records
authorWerner Koch <wk@gnupg.org>
Mon, 23 Jun 2014 12:57:32 +0000 (14:57 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 23 Jun 2014 12:57:32 +0000 (14:57 +0200)
* 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

index 6618a7f..2728308 100644 (file)
@@ -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);