aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/config/ike_cfg.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-10-16 14:21:17 +0200
committerMartin Willi <martin@revosec.ch>2012-10-24 10:17:36 +0200
commitcf62d073f17591fb632dd878983fed7ccf6540b4 (patch)
tree3832811c2ab984c6cc0e15dc5aaef900144d5798 /src/libcharon/config/ike_cfg.h
parent23ca39010e20b1a76850639f2d2aa8a85df9bc32 (diff)
downloadstrongswan-cf62d073f17591fb632dd878983fed7ccf6540b4.tar.bz2
strongswan-cf62d073f17591fb632dd878983fed7ccf6540b4.tar.xz
Move ike_version_t definition from peer_cfg_t to ike_cfg_t
Diffstat (limited to 'src/libcharon/config/ike_cfg.h')
-rw-r--r--src/libcharon/config/ike_cfg.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libcharon/config/ike_cfg.h b/src/libcharon/config/ike_cfg.h
index 691d223a3..d62069380 100644
--- a/src/libcharon/config/ike_cfg.h
+++ b/src/libcharon/config/ike_cfg.h
@@ -22,6 +22,7 @@
#ifndef IKE_CFG_H_
#define IKE_CFG_H_
+typedef enum ike_version_t ike_version_t;
typedef struct ike_cfg_t ike_cfg_t;
#include <library.h>
@@ -32,6 +33,23 @@ typedef struct ike_cfg_t ike_cfg_t;
#include <crypto/diffie_hellman.h>
/**
+ * IKE version.
+ */
+enum ike_version_t {
+ /** any version */
+ IKE_ANY = 0,
+ /** IKE version 1 */
+ IKEV1 = 1,
+ /** IKE version 2 */
+ IKEV2 = 2,
+};
+
+/**
+ * enum strings fro ike_version_t
+ */
+extern enum_name_t *ike_version_names;
+
+/**
* An ike_cfg_t defines the rules to set up an IKE_SA.
*
* @see peer_cfg_t to get an overview over the configurations.