diff options
Diffstat (limited to 'Source/charon/encoding/payloads/transform_attribute.c')
-rw-r--r-- | Source/charon/encoding/payloads/transform_attribute.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/charon/encoding/payloads/transform_attribute.c b/Source/charon/encoding/payloads/transform_attribute.c index c85895fc6..9f9d82924 100644 --- a/Source/charon/encoding/payloads/transform_attribute.c +++ b/Source/charon/encoding/payloads/transform_attribute.c @@ -322,3 +322,13 @@ transform_attribute_t *transform_attribute_create() return (&(this->public)); } +/* + * Described in header. + */ +transform_attribute_t *transform_attribute_create_key_length(u_int16_t key_length) +{ + transform_attribute_t *attribute = transform_attribute_create(); + attribute->set_attribute_type(attribute,KEY_LENGTH); + attribute->set_value(attribute,key_length); + return attribute; +} |