[svn] GnuPG - r4431 - branches/STABLE-BRANCH-1-4/g10
svn author dshaw
cvs at cvs.gnupg.org
Wed Feb 14 04:41:28 CET 2007
Author: dshaw
Date: 2007-02-14 04:41:24 +0100 (Wed, 14 Feb 2007)
New Revision: 4431
Modified:
branches/STABLE-BRANCH-1-4/g10/ChangeLog
branches/STABLE-BRANCH-1-4/g10/getkey.c
branches/STABLE-BRANCH-1-4/g10/parse-packet.c
Log:
* parse-packet.c (parse_signature): It's hex.
* getkey.c (merge_selfsigs_subkey): Avoid listing the contents of a
backsig when list mode is on. Noted by Timo Schulz.
Modified: branches/STABLE-BRANCH-1-4/g10/ChangeLog
===================================================================
--- branches/STABLE-BRANCH-1-4/g10/ChangeLog 2007-02-12 14:13:37 UTC (rev 4430)
+++ branches/STABLE-BRANCH-1-4/g10/ChangeLog 2007-02-14 03:41:24 UTC (rev 4431)
@@ -1,3 +1,10 @@
+2007-02-13 David Shaw <dshaw at jabberwocky.com>
+
+ * parse-packet.c (parse_signature): It's hex.
+
+ * getkey.c (merge_selfsigs_subkey): Avoid listing the contents of
+ a backsig when list mode is on. Noted by Timo Schulz.
+
2007-02-04 Werner Koch <wk at g10code.com>
* parse-packet.c (parse_signature): Limit bytes read for an
Modified: branches/STABLE-BRANCH-1-4/g10/getkey.c
===================================================================
--- branches/STABLE-BRANCH-1-4/g10/getkey.c 2007-02-12 14:13:37 UTC (rev 4430)
+++ branches/STABLE-BRANCH-1-4/g10/getkey.c 2007-02-14 03:41:24 UTC (rev 4431)
@@ -2169,6 +2169,7 @@
{
PKT_signature *backsig=xmalloc_clear(sizeof(PKT_signature));
IOBUF backsig_buf=iobuf_temp_with_content(p,n);
+ int save_mode=set_packet_list_mode(0);
if(parse_signature(backsig_buf,PKT_SIGNATURE,n,backsig)==0)
{
@@ -2178,6 +2179,8 @@
subpk->backsig=1;
}
+ set_packet_list_mode(save_mode);
+
iobuf_close(backsig_buf);
free_seckey_enc(backsig);
}
Modified: branches/STABLE-BRANCH-1-4/g10/parse-packet.c
===================================================================
--- branches/STABLE-BRANCH-1-4/g10/parse-packet.c 2007-02-12 14:13:37 UTC (rev 4430)
+++ branches/STABLE-BRANCH-1-4/g10/parse-packet.c 2007-02-14 03:41:24 UTC (rev 4431)
@@ -1424,7 +1424,7 @@
if( list_mode ) {
fprintf (listfp, ":signature packet: algo %d, keyid %08lX%08lX\n"
- "\tversion %d, created %lu, md5len %d, sigclass %02x\n"
+ "\tversion %d, created %lu, md5len %d, sigclass 0x%02x\n"
"\tdigest algo %d, begin of digest %02x %02x\n",
sig->pubkey_algo,
(ulong)sig->keyid[0], (ulong)sig->keyid[1],
More information about the Gnupg-commits
mailing list