summaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-11-03 20:38:58 +0100
committerWerner Koch <wk@gnupg.org>1998-11-03 20:38:58 +0100
commitb9dd2ebb2c08b457735f8acf997ff54965db91de (patch)
tree7d2408445104fa5135bd63b7e7bfc98d5a66688f /g10/parse-packet.c
parentsome random changes (diff)
downloadgnupg2-b9dd2ebb2c08b457735f8acf997ff54965db91de.tar.xz
gnupg2-b9dd2ebb2c08b457735f8acf997ff54965db91de.zip
(Does not compile yet)
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 542676ccd..1f19b05de 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -633,7 +633,8 @@ dump_sig_subpkt( int hashed, int type, int critical,
printf("sig expires %s", strtimestamp( buffer_to_u32(buffer) ) );
break;
case SIGSUBPKT_EXPORTABLE:
- p = "exportable";
+ if( length )
+ printf("%sexportable", *buffer? "":"not ");
break;
case SIGSUBPKT_TRUST:
p = "trust signature";
@@ -759,6 +760,10 @@ parse_sig_subpkt( const byte *buffer, sigsubpkttype_t reqtype, size_t *ret_n )
if( n < 4 )
break;
return buffer;
+ case SIGSUBPKT_EXPORTABLE:
+ if( !n )
+ break;
+ return buffer;
case SIGSUBPKT_ISSUER:/* issuer key ID */
if( n < 8 )
break;