implemented and tested functionality to create sa_payload from
[strongswan.git] / Source / charon / encoding / payloads / transform_attribute.h
index c436012..5820932 100644 (file)
@@ -119,9 +119,9 @@ struct transform_attribute_t {
         * @brief Clones an transform_attribute_t object.
         *
         * @param this  transform_attribute_t object to clone
         * @brief Clones an transform_attribute_t object.
         *
         * @param this  transform_attribute_t object to clone
-        * @param clone the new clone will be written there
+        * @return              cloned transform_attribute_t object
         */
         */
-       void (*clone) (transform_attribute_t *this,transform_attribute_t **clone);
+       transform_attribute_t * (*clone) (transform_attribute_t *this);
 
        /**
         * @brief Destroys an transform_attribute_t object.
 
        /**
         * @brief Destroys an transform_attribute_t object.
@@ -132,11 +132,23 @@ struct transform_attribute_t {
 };
 
 /**
 };
 
 /**
- * @brief Creates an empty transform_attribute_t object
+ * @brief Creates an empty transform_attribute_t object.
  * 
  * @return                     created transform_attribute_t object
  * 
  * @return                     created transform_attribute_t object
+ * 
  * @ingroup payloads
  */
 transform_attribute_t *transform_attribute_create();
 
  * @ingroup payloads
  */
 transform_attribute_t *transform_attribute_create();
 
+/**
+ * @brief Creates an transform_attribute_t of type KEY_LENGTH.
+ * 
+ * @param key_length   key length in bytes
+ * @return                             created transform_attribute_t object
+ * 
+ * @ingroup payloads
+ */
+transform_attribute_t *transform_attribute_create_key_length(u_int16_t key_length);
+
+
 #endif /*TRANSFORM_ATTRIBUTE_H_*/
 #endif /*TRANSFORM_ATTRIBUTE_H_*/