From f6ba78c370794ea8247b33752a8dbe930b19df1e Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Mon, 5 Dec 2005 12:21:38 +0000 Subject: - added payload CERT - cleaned code of different states - added additional notify handling --- Source/charon/encoding/parser.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Source/charon/encoding/parser.c') diff --git a/Source/charon/encoding/parser.c b/Source/charon/encoding/parser.c index 509deaca9..1b1c13613 100644 --- a/Source/charon/encoding/parser.c +++ b/Source/charon/encoding/parser.c @@ -43,6 +43,7 @@ #include #include #include +#include #include @@ -827,6 +828,16 @@ static status_t parse_payload(private_parser_t *this, payload_type_t payload_typ } break; } + case CERT_DATA: + { + size_t data_length = payload_length - CERT_PAYLOAD_HEADER_LENGTH; + if (this->parse_chunk(this, rule_number, output + rule->offset, data_length) != SUCCESS) + { + pld->destroy(pld); + return PARSE_ERROR; + } + break; + } case KEY_EXCHANGE_DATA: { size_t keydata_length = payload_length - KE_PAYLOAD_HEADER_LENGTH; -- cgit v1.2.3