From 91443667d532bb3336800babdbcc993318c29cdf Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Wed, 16 Nov 2005 16:50:13 +0000 Subject: - spi_t replaced with u_int64_t --- Source/charon/parser.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Source/charon/parser.c') diff --git a/Source/charon/parser.c b/Source/charon/parser.c index a1be3a833..c30092302 100644 --- a/Source/charon/parser.c +++ b/Source/charon/parser.c @@ -777,6 +777,16 @@ static status_t parse_payload(private_parser_t *this, payload_type_t payload_typ return SUCCESS; } +/** + * implementation of parser_t.reset_context + */ +static status_t reset_context (private_parser_t *this) +{ + this->byte_pos = this->input; + this->bit_pos = 0; + return SUCCESS; +} + /** * implementation of parser_t.destroy */ @@ -811,6 +821,7 @@ parser_t *parser_create(chunk_t data) } this->public.parse_payload = (status_t(*)(parser_t*,payload_type_t,payload_t**)) parse_payload; + this->public.reset_context = (status_t(*)(parser_t*)) reset_context; this->public.destroy = (status_t(*)(parser_t*)) destroy; -- cgit v1.2.3