- fixed doxygen build
[strongswan.git] / Source / charon / config / proposal.h
index e25d435..48e3ad8 100644 (file)
  * for more details.
  */
 
-#ifndef _PROPOSAL_H_
-#define _PROPOSAL_H_
+#ifndef PROPOSAL_H_
+#define PROPOSAL_H_
 
 #include <types.h>
 #include <utils/identification.h>
 #include <utils/linked_list.h>
-#include <network/host.h>
-#include <transforms/crypters/crypter.h>
-#include <transforms/signers/signer.h>
-#include <transforms/diffie_hellman.h>
+#include <utils/host.h>
+#include <crypto/crypters/crypter.h>
+#include <crypto/signers/signer.h>
+#include <crypto/diffie_hellman.h>
 #include <config/traffic_selector.h>
 
 
@@ -41,10 +41,10 @@ typedef enum protocol_id_t protocol_id_t;
  * @ingroup config
  */
 enum protocol_id_t {
-       UNDEFINED_PROTOCOL_ID = 201,
-       IKE = 1,
-       AH = 2,
-       ESP = 3,
+       PROTO_NONE = 0,
+       PROTO_IKE = 1,
+       PROTO_AH = 2,
+       PROTO_ESP = 3,
 };
 
 /** 
@@ -237,6 +237,14 @@ struct proposal_t {
        void (*set_spi) (proposal_t *this, protocol_id_t proto, u_int64_t spi);
        
        /**
+        * @brief Clone a proposal.
+        * 
+        * @param this                          proposal to clone
+        * @return                                      clone of it
+        */
+       proposal_t *(*clone) (proposal_t *this);
+       
+       /**
         * @brief Destroys the proposal object.
         * 
         * @param this                          calling object
@@ -258,4 +266,4 @@ struct proposal_t {
  */
 proposal_t *proposal_create(u_int8_t number);
 
-#endif //_PROPOSAL_H_
+#endif /* PROPOSAL_H_ */