*** HISTORICAL MOMENT: IKEv2 becomes the default! ***
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 9 Oct 2010 18:46:55 +0000 (20:46 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 9 Oct 2010 18:46:55 +0000 (20:46 +0200)
src/starter/starterstroke.c
src/starter/starterwhack.c

index 8089518..9ba569d 100644 (file)
@@ -195,7 +195,7 @@ int starter_stroke_add_conn(starter_config_t *cfg, starter_conn_t *conn)
        memset(&msg, 0, sizeof(msg));
        msg.type = STR_ADD_CONN;
        msg.length = offsetof(stroke_msg_t, buffer);
-       msg.add_conn.ikev2 = conn->keyexchange == KEY_EXCHANGE_IKEV2;
+       msg.add_conn.ikev2 = conn->keyexchange != KEY_EXCHANGE_IKEV1;
        msg.add_conn.name = push_string(&msg, connection_name(conn));
 
        /* PUBKEY is preferred to PSK and EAP */
index 58034d9..b7d916e 100644 (file)
@@ -277,7 +277,7 @@ int starter_whack_add_conn(starter_conn_t *conn)
        msg.whack_connection = TRUE;
        msg.name = connection_name(conn, name, sizeof(name));
 
-       msg.ikev1                 = conn->keyexchange != KEY_EXCHANGE_IKEV2;
+       msg.ikev1                 = conn->keyexchange == KEY_EXCHANGE_IKEV1;
        msg.addr_family           = conn->addr_family;
        msg.tunnel_addr_family    = conn->tunnel_addr_family;
        msg.sa_ike_life_seconds   = conn->sa_ike_life_seconds;