diff options
author | Martin Willi <martin@revosec.ch> | 2011-11-16 13:46:54 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-03-20 17:30:40 +0100 |
commit | 1bf2971ff2d63f1f1c4d59d1091b8a1b11b0ef62 (patch) | |
tree | dc7c9946dcd757cca853b7ce2f6edc4c2381442a /src/libcharon/encoding/payloads/proposal_substructure.h | |
parent | 3f6d1b13a7d53bf465c65687e18425d14a143af8 (diff) | |
download | strongswan-1bf2971ff2d63f1f1c4d59d1091b8a1b11b0ef62.tar.bz2 strongswan-1bf2971ff2d63f1f1c4d59d1091b8a1b11b0ef62.tar.xz |
Implemented limited payload parsing for IKEv1 SA payloads
Diffstat (limited to 'src/libcharon/encoding/payloads/proposal_substructure.h')
-rw-r--r-- | src/libcharon/encoding/payloads/proposal_substructure.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcharon/encoding/payloads/proposal_substructure.h b/src/libcharon/encoding/payloads/proposal_substructure.h index d0ba1fd2a..86ccd5b8b 100644 --- a/src/libcharon/encoding/payloads/proposal_substructure.h +++ b/src/libcharon/encoding/payloads/proposal_substructure.h @@ -37,9 +37,7 @@ typedef struct proposal_substructure_t proposal_substructure_t; #define PROPOSAL_SUBSTRUCTURE_HEADER_LENGTH 8 /** - * Class representing an IKEv2-PROPOSAL SUBSTRUCTURE. - * - * The PROPOSAL SUBSTRUCTURE format is described in RFC section 3.3.1. + * Class representing an IKEv1/IKEv2 proposal substructure. */ struct proposal_substructure_t { @@ -126,17 +124,19 @@ struct proposal_substructure_t { /** * Creates an empty proposal_substructure_t object * - * @return proposal_substructure_t object + * @param type PROPOSAL_SUBSTRUCTURE or PROPOSAL_SUBSTRUCTURE_V1 + * @return proposal_substructure_t object */ -proposal_substructure_t *proposal_substructure_create(void); +proposal_substructure_t *proposal_substructure_create(payload_type_t type); /** * Creates a proposal_substructure_t from a proposal_t. * + * @param type PROPOSAL_SUBSTRUCTURE or PROPOSAL_SUBSTRUCTURE_V1 * @param proposal proposal to build a substruct out of it * @return proposal_substructure_t object */ proposal_substructure_t *proposal_substructure_create_from_proposal( - proposal_t *proposal); + payload_type_t type, proposal_t *proposal); #endif /** PROPOSAL_SUBSTRUCTURE_H_ @}*/ |