X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=Source%2Fcharon%2Fencoding%2Fpayloads%2Ftransform_attribute.c;h=9f9d8292453cb09c5b2fd0c78b4961c52e9bbce1;hp=c85895fc6c9d2dc99151928e7ba861044d19ec3c;hb=b737e9d9e8e44b360509cfab36d22170f54af334;hpb=d45ec1dedfa06155c344f5cce0ac7b2ec331c825 diff --git a/Source/charon/encoding/payloads/transform_attribute.c b/Source/charon/encoding/payloads/transform_attribute.c index c85895f..9f9d829 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; +}