From 1ece02aa54afb9a0e51e916098373beda317f070 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 9 Jun 1998 15:14:06 +0000 Subject: Sicherung --- g10/parse-packet.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'g10/parse-packet.c') 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); -- cgit v1.2.3