1.0.6a patch for list-packets
David Shaw
dshaw@jabberwocky.com
Fri Sep 7 19:37:02 2001
Here's a patch so that the key server preferences are visible when
doing a list-packets. The patch also fixes a little bug which will
report a non-revocable signature as revocable.
Also, I noticed that the key server preferences are set to No-modify
by default and there is no way to change it. I did read the comment
in the code, and it's reasonable for some people, but shouldn't this
at least be optional?
David
--- parse-packet.c Thu Sep 6 03:13:02 2001
+++ /home/dshaw/gnupg-1.0.6a/g10/parse-packet.c Fri Sep 7 13:20:21 2001
@@ -766,7 +766,8 @@
p = "regular expression";
break;
case SIGSUBPKT_REVOCABLE:
- p = "revocable";
+ if( length )
+ printf("%srevocable", *buffer? "":"not ");
break;
case SIGSUBPKT_KEY_EXPIRE:
if( length >= 4 )
@@ -829,7 +830,9 @@
printf(" %d", buffer[i] );
break;
case SIGSUBPKT_KS_FLAGS:
- p = "key server preferences";
+ fputs("key server preferences:",stdout);
+ for(i=0;i<length;i++)
+ printf(" %02X", buffer[i]);
break;
case SIGSUBPKT_PREF_KS:
p = "preferred key server";
--
David Shaw | dshaw@jabberwocky.com | WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
"There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence." - Jeremy S. Anderson