diff options
author | Martin Willi <martin@revosec.ch> | 2011-12-17 14:26:04 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-03-20 17:31:25 +0100 |
commit | ef175c92d9e4f2006e8a4e48aff0e49f47e3a989 (patch) | |
tree | da6ef378d289a880b65546b8b8ba2d6a6470a11a | |
parent | ac009df132e9b7a66962e1cf860cd2e2f40be60e (diff) | |
download | strongswan-ef175c92d9e4f2006e8a4e48aff0e49f47e3a989.tar.bz2 strongswan-ef175c92d9e4f2006e8a4e48aff0e49f47e3a989.tar.xz |
Initiate IKE_ANY configurations with IKEv2
-rw-r--r-- | src/libcharon/sa/ike_sa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcharon/sa/ike_sa.c b/src/libcharon/sa/ike_sa.c index cb560cd85..04524b371 100644 --- a/src/libcharon/sa/ike_sa.c +++ b/src/libcharon/sa/ike_sa.c @@ -2042,6 +2042,11 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id, bool initiator, private_ike_sa_t *this; static u_int32_t unique_id = 0; + if (version != IKEV1) + { + version = IKEV2; + } + INIT(this, .public = { .get_version = _get_version, |