strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version bump to 5.9.7dr2
[strongswan.git]
/
src
/
libcharon
/
encoding
/
parser.h
diff --git
a/src/libcharon/encoding/parser.h
b/src/libcharon/encoding/parser.h
index
27c5f03
..
56dc403
100644
(file)
--- a/
src/libcharon/encoding/parser.h
+++ b/
src/libcharon/encoding/parser.h
@@
-1,7
+1,8
@@
/*
* Copyright (C) 2005-2006 Martin Willi
* Copyright (C) 2005 Jan Hutter
/*
* Copyright (C) 2005-2006 Martin Willi
* Copyright (C) 2005 Jan Hutter
- * Hochschule fuer Technik Rapperswil
+ *
+ * Copyright (C) secunet Security Networks AG
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@
-29,7
+30,7
@@
typedef struct parser_t parser_t;
#include <encoding/payloads/payload.h>
/**
#include <encoding/payloads/payload.h>
/**
- * A parser_t class to parse IKE
v2
payloads.
+ * A parser_t class to parse IKE payloads.
*
* A parser is used for parsing one chunk of data. Multiple
* payloads can be parsed out of the chunk using parse_payload.
*
* A parser is used for parsing one chunk of data. Multiple
* payloads can be parsed out of the chunk using parse_payload.
@@
-50,7
+51,8
@@
struct parser_t {
* - SUCCESSFUL if succeeded,
* - PARSE_ERROR if corrupted/invalid data found
*/
* - SUCCESSFUL if succeeded,
* - PARSE_ERROR if corrupted/invalid data found
*/
- status_t (*parse_payload) (parser_t *this, payload_type_t payload_type, payload_t **payload);
+ status_t (*parse_payload) (parser_t *this, payload_type_t payload_type,
+ payload_t **payload);
/**
* Gets the remaining byte count which is not currently parsed.
/**
* Gets the remaining byte count which is not currently parsed.
@@
-63,6
+65,13
@@
struct parser_t {
void (*reset_context) (parser_t *this);
/**
void (*reset_context) (parser_t *this);
/**
+ * Set the major IKE version.
+ *
+ * @param major_version the major IKE version
+ */
+ void (*set_major_version) (parser_t *this, uint8_t major_version);
+
+ /**
* Destroys a parser_t object.
*/
void (*destroy) (parser_t *this);
* Destroys a parser_t object.
*/
void (*destroy) (parser_t *this);