Removed obsolete clone mehtod from proposal_substructure
[strongswan.git] / src / libcharon / encoding / payloads / proposal_substructure.h
index 4934802..2e8d417 100644 (file)
@@ -42,36 +42,19 @@ typedef struct proposal_substructure_t proposal_substructure_t;
  * The PROPOSAL SUBSTRUCTURE format is described in RFC section 3.3.1.
  */
 struct proposal_substructure_t {
+
        /**
         * The payload_t interface.
         */
        payload_t payload_interface;
 
        /**
-        * Creates an iterator of stored transform_substructure_t objects.
-        *
-        * @param forward               iterator direction (TRUE: front to end)
-        * @return                              created iterator_t object
-        */
-       iterator_t *(*create_transform_substructure_iterator) (
-                                                               proposal_substructure_t *this, bool forward);
-
-       /**
-        * Adds a transform_substructure_t object to this object.
-        *
-        * @param transform     transform_substructure_t object to add
-        */
-       void (*add_transform_substructure) (proposal_substructure_t *this,
-                                                                               transform_substructure_t *transform);
-
-       /**
         * Sets the proposal number of current proposal.
         *
         * @param id                    proposal number to set
         */
        void (*set_proposal_number) (proposal_substructure_t *this,
                                                                 u_int8_t proposal_number);
-
        /**
         * get proposal number of current proposal.
         *
@@ -80,20 +63,6 @@ struct proposal_substructure_t {
        u_int8_t (*get_proposal_number) (proposal_substructure_t *this);
 
        /**
-        * get the number of transforms in current proposal.
-        *
-        * @return                      transform count in current proposal
-        */
-       size_t (*get_transform_count) (proposal_substructure_t *this);
-
-       /**
-        * get size of the set spi in bytes.
-        *
-        * @return                      size of the spi in bytes
-        */
-       size_t (*get_spi_size) (proposal_substructure_t *this);
-
-       /**
         * Sets the protocol id of current proposal.
         *
         * @param id            protocol id to set
@@ -142,13 +111,6 @@ struct proposal_substructure_t {
        proposal_t * (*get_proposal) (proposal_substructure_t *this);
 
        /**
-        * Clones an proposal_substructure_t object.
-        *
-        * @return              cloned object
-        */
-       proposal_substructure_t* (*clone) (proposal_substructure_t *this);
-
-       /**
         * Destroys an proposal_substructure_t object.
         */
        void (*destroy) (proposal_substructure_t *this);