aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-06-09 15:14:06 +0000
committerWerner Koch <[email protected]>1998-06-09 15:14:06 +0000
commit1ece02aa54afb9a0e51e916098373beda317f070 (patch)
tree72d56d5bd9feae8540d8bf1d2510ea08fdd58c97 /g10/parse-packet.c
parentadd a challenge (diff)
downloadgnupg-1ece02aa54afb9a0e51e916098373beda317f070.tar.gz
gnupg-1ece02aa54afb9a0e51e916098373beda317f070.zip
Sicherung
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 14d4c7b1c..e1f023261 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -615,6 +615,7 @@ parse_sig_subpkt( const byte *buffer, sigsubpkttype_t reqtype, size_t *ret_n )
: type == SIGSUBPKT_POLICY ? "policy URL"
: type == SIGSUBPKT_KEY_FLAGS ? "key flags"
: type == SIGSUBPKT_SIGNERS_UID ? "signer's user id"
+ : type == SIGSUBPKT_PRIV_ADD_SIG? "signs additional user id"
: "?");
}
else if( type == reqtype )
@@ -636,6 +637,13 @@ parse_sig_subpkt( const byte *buffer, sigsubpkttype_t reqtype, size_t *ret_n )
if( n < 8 )
break;
return buffer;
+ case SIGSUBPKT_PRIV_ADD_SIG:
+ /* because we use private data, we check the GNUPG marker */
+ if( n < 24 )
+ break;
+ if( buffer[0] != 'G' || buffer[1] != 'P' || buffer[2] != 'G' )
+ return NULL;
+ return buffer+3;
default: BUG(); /* not yet needed */
}
log_error("subpacket of type %d too short\n", type);