diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-12-01 08:48:57 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-12-01 08:48:57 +0000 |
commit | b737e9d9e8e44b360509cfab36d22170f54af334 (patch) | |
tree | c2ba421ea4619d8f5c28bbf948b0bda1156722b0 /Source/charon/encoding/payloads/transform_substructure.h | |
parent | d45ec1dedfa06155c344f5cce0ac7b2ec331c825 (diff) | |
download | strongswan-b737e9d9e8e44b360509cfab36d22170f54af334.tar.bz2 strongswan-b737e9d9e8e44b360509cfab36d22170f54af334.tar.xz |
implemented and tested functionality to create sa_payload from
ike_proposal_t's and also generate ike_proposal_t's from sa_payload
Diffstat (limited to 'Source/charon/encoding/payloads/transform_substructure.h')
-rw-r--r-- | Source/charon/encoding/payloads/transform_substructure.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Source/charon/encoding/payloads/transform_substructure.h b/Source/charon/encoding/payloads/transform_substructure.h index ac8684cc1..6671dbc7b 100644 --- a/Source/charon/encoding/payloads/transform_substructure.h +++ b/Source/charon/encoding/payloads/transform_substructure.h @@ -137,7 +137,7 @@ struct transform_substructure_t { * @brief Sets the next_payload field of this substructure * * If this is the last transform, next payload field is set to 0, - * otherwise to 3 (payload type of transform in IKEv1) + * otherwise to 3 * * @param this calling transform_substructure_t object * @param is_last When TRUE, next payload field is set to 0, otherwise to 3 @@ -213,7 +213,7 @@ struct transform_substructure_t { }; /** - * @brief Creates an empty transform_substructure_t object + * @brief Creates an empty transform_substructure_t object. * * @return created transform_substructure_t object * @@ -221,4 +221,20 @@ struct transform_substructure_t { */ transform_substructure_t *transform_substructure_create(); +/** + * @brief Creates an empty transform_substructure_t object. + * + * The key length is used for the transport types ENCRYPTION_ALGORITHM, + * PSEUDO_RANDOM_FUNCTION, INTEGRITY_ALGORITHM. For all + * other transport types the key_length parameter is not used + * + * @return created transform_substructure_t object + * @param transform_type type of transform to create + * @param transform_id transform id specifying the specific algorithm of a transform type + * @param key_length Key length for key lenght attribute + * + * @ingroup payloads + */ +transform_substructure_t *transform_substructure_create_type(transform_type_t transform_type, u_int16_t transform_id, u_int16_t key_length); + #endif /*TRANSFORM_SUBSTRUCTURE_H_*/ |