Include hardcoded tunnel mode attribute in porposal, remove ESN attribute
authorMartin Willi <martin@revosec.ch>
Wed, 23 Nov 2011 12:56:21 +0000 (13:56 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:50 +0000 (17:30 +0100)
src/libcharon/encoding/payloads/proposal_substructure.c

index 66fa899..6173d07 100644 (file)
@@ -867,10 +867,10 @@ static void set_from_proposal_v1_esp(private_proposal_substructure_t *this,
        }
        enumerator->destroy(enumerator);
 
-       /* TODO-IKEv1: Add lifetime and other attributes, non-fixes ESN */
+       /* TODO-IKEv1: Add lifetime and other attributes, ESN */
        transform->add_transform_attribute(transform,
                transform_attribute_create_value(TRANSFORM_ATTRIBUTE_V1,
-                                                       TATTR_PH2_EXT_SEQ_NUMBER, NO_EXT_SEQ_NUMBERS));
+                                                       TATTR_PH2_ENCAP_MODE, IKEV1_ENCAP_TUNNEL));
        transform->add_transform_attribute(transform,
                transform_attribute_create_value(TRANSFORM_ATTRIBUTE_V1,
                                                        TATTR_PH2_SA_LIFE_TYPE, IKEV1_LIFE_TYPE_SECONDS));