summaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2000-10-11 19:26:49 +0200
committerWerner Koch <wk@gnupg.org>2000-10-11 19:26:49 +0200
commitc287a8d05bfa08a3ea7d2c8fc8ae8c3a740aef1c (patch)
tree541bb4fcd34dd379b6ac17f0e58af743dc9ed2bd /g10/parse-packet.c
parentThis was missing in HEAD. (diff)
downloadgnupg2-c287a8d05bfa08a3ea7d2c8fc8ae8c3a740aef1c.tar.xz
gnupg2-c287a8d05bfa08a3ea7d2c8fc8ae8c3a740aef1c.zip
Add features packet and fixes MIPS3.
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index b22a59989..691be6662 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -843,7 +843,12 @@ dump_sig_subpkt( int hashed, int type, int critical,
printf("%02X", buffer[i] );
}
break;
- case SIGSUBPKT_PRIV_ADD_SIG:
+ case SIGSUBPKT_FEATURES:
+ fputs ( "features:", stdout );
+ for( i=0; i < length; i++ )
+ printf(" %02X", buffer[i] );
+ break;
+ case SIGSUBPKT_PRIV_ADD_SIG: /* gnupg private - to be removed */
p = "signs additional user ID";
break;
default: p = "?"; break;
@@ -889,6 +894,7 @@ parse_one_sig_subpkt( const byte *buffer, size_t n, int type )
case SIGSUBPKT_PREF_SYM:
case SIGSUBPKT_PREF_HASH:
case SIGSUBPKT_PREF_COMPR:
+ case SIGSUBPKT_FEATURES:
case SIGSUBPKT_POLICY:
return 0;
case SIGSUBPKT_PRIMARY_UID:
@@ -925,6 +931,7 @@ can_handle_critical( const byte *buffer, size_t n, int type )
case SIGSUBPKT_PREF_SYM:
case SIGSUBPKT_PREF_HASH:
case SIGSUBPKT_PREF_COMPR:
+ case SIGSUBPKT_FEATURES:
case SIGSUBPKT_KEY_FLAGS:
return 1;