Support an "any" IKE version for both IKEv1 or IKEv2

This commit is contained in:
Martin Willi
2012-03-20 17:31:25 +01:00
parent b9a707e696
commit d94c923648
9 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -686,7 +686,7 @@ static peer_cfg_t *build_peer_cfg(private_stroke_config_t *this,
* the pool name as the connection name, which the attribute provider
* uses to serve pool addresses. */
peer_cfg = peer_cfg_create(msg->add_conn.name,
msg->add_conn.ikev2 ? IKEV2 : IKEV1, ike_cfg,
msg->add_conn.version, ike_cfg,
msg->add_conn.me.sendcert, unique,
msg->add_conn.rekey.tries, rekey, reauth, jitter, over,
msg->add_conn.mobike, msg->add_conn.dpd.delay,