From 7a7f486df6c4d0f87de0146ce1c10315c0e75093 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 23 Nov 2011 13:56:21 +0100 Subject: [PATCH] Include hardcoded tunnel mode attribute in porposal, remove ESN attribute --- src/libcharon/encoding/payloads/proposal_substructure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcharon/encoding/payloads/proposal_substructure.c b/src/libcharon/encoding/payloads/proposal_substructure.c index 66fa8997b..6173d07db 100644 --- a/src/libcharon/encoding/payloads/proposal_substructure.c +++ b/src/libcharon/encoding/payloads/proposal_substructure.c @@ -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));