aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/payloads/transform_substructure.h
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-28 15:20:51 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-28 15:20:51 +0000
commitb9d9f18874d2cf4de3c9cffeaac716df71a31e99 (patch)
tree648efac49c2eae47d6344f224d74a651d11b73dd /Source/charon/encoding/payloads/transform_substructure.h
parent61068e9152c93365887d7b137c49e34ecb05cc29 (diff)
downloadstrongswan-b9d9f18874d2cf4de3c9cffeaac716df71a31e99.tar.bz2
strongswan-b9d9f18874d2cf4de3c9cffeaac716df71a31e99.tar.xz
- added compution of all needed keys and also creation of needed
transform objects
Diffstat (limited to 'Source/charon/encoding/payloads/transform_substructure.h')
-rw-r--r--Source/charon/encoding/payloads/transform_substructure.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/charon/encoding/payloads/transform_substructure.h b/Source/charon/encoding/payloads/transform_substructure.h
index 8d49874db..51119d275 100644
--- a/Source/charon/encoding/payloads/transform_substructure.h
+++ b/Source/charon/encoding/payloads/transform_substructure.h
@@ -56,7 +56,7 @@ enum transform_type_t {
UNDEFINED_TRANSFORM_TYPE = 241,
ENCRYPTION_ALGORITHM = 1,
PSEUDO_RANDOM_FUNCTION = 2,
- INTEGRITIY_ALGORITHM = 3,
+ INTEGRITY_ALGORITHM = 3,
DIFFIE_HELLMAN_GROUP = 4,
EXTENDED_SEQUENCE_NUNBERS = 5
};
@@ -180,6 +180,19 @@ struct transform_substructure_t {
* @return Transform id of current transform substructure.
*/
u_int16_t (*get_transform_id) (transform_substructure_t *this);
+
+ /**
+ * @brief get transform id of the current transform.
+ *
+ * @param this calling transform_substructure_t object
+ * @param key_length The key length is written to this location
+ * @return
+ * - SUCCESS if a key length attribute is contained
+ * - FAILED if no key length attribute is part of this
+ * transform or key length uses more then 16 bit!
+ * - OUT_OF_RES
+ */
+ status_t (*get_key_length) (transform_substructure_t *this,u_int16_t *key_length);
/**
* @brief Clones an transform_substructure_t object.