updated tnc-pdp plugin for 5.0.0
[strongswan.git] / src / libcharon / plugins / tnc_pdp / tnc_pdp_connections.c
index 175a57a..0abda8d 100644 (file)
@@ -114,8 +114,8 @@ METHOD(tnc_pdp_connections_t, add, void,
        ike_sa_t *ike_sa;
        bool found = FALSE;
 
-       ike_sa_id = ike_sa_id_create(0, 0, FALSE);
-       ike_sa = ike_sa_create(ike_sa_id);
+       ike_sa_id = ike_sa_id_create(IKEV2_MAJOR_VERSION, 0, 0, FALSE);
+       ike_sa = ike_sa_create(ike_sa_id, FALSE, IKEV2);
        ike_sa_id->destroy(ike_sa_id);
        ike_sa->set_other_id(ike_sa, peer);