aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-11-16 09:29:38 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:30:40 +0100
commitb0b9d185931e7f88f0f7c89e9ef4e6034ac38dd3 (patch)
tree4aa8013d6126f2205d6d98df6ac102a511bacf8a /src/conftest/hooks
parent8f3aea2f774c5647c6cb7e4da664c6323f5cc669 (diff)
downloadstrongswan-b0b9d185931e7f88f0f7c89e9ef4e6034ac38dd3.tar.bz2
strongswan-b0b9d185931e7f88f0f7c89e9ef4e6034ac38dd3.tar.xz
Extend sa_payload for IKEv1 support
Diffstat (limited to 'src/conftest/hooks')
-rw-r--r--src/conftest/hooks/custom_proposal.c3
-rw-r--r--src/conftest/hooks/pretend_auth.c3
-rw-r--r--src/conftest/hooks/set_proposal_number.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/conftest/hooks/custom_proposal.c b/src/conftest/hooks/custom_proposal.c
index e4acd841f..9522335b1 100644
--- a/src/conftest/hooks/custom_proposal.c
+++ b/src/conftest/hooks/custom_proposal.c
@@ -145,7 +145,8 @@ METHOD(listener_t, message, bool,
proposal->get_protocol(proposal),
proposal->get_spi(proposal));
DBG1(DBG_CFG, "injecting custom proposal: %#P", new_props);
- new = sa_payload_create_from_proposal_list(new_props);
+ new = sa_payload_create_from_proposal_list(
+ SECURITY_ASSOCIATION, new_props);
message->add_payload(message, (payload_t*)new);
new_props->destroy_offset(new_props, offsetof(proposal_t, destroy));
}
diff --git a/src/conftest/hooks/pretend_auth.c b/src/conftest/hooks/pretend_auth.c
index 4b7168cac..dd6ab9959 100644
--- a/src/conftest/hooks/pretend_auth.c
+++ b/src/conftest/hooks/pretend_auth.c
@@ -294,7 +294,8 @@ static void process_auth_response(private_pretend_auth_t *this,
if (this->proposal)
{
message->add_payload(message, (payload_t*)
- sa_payload_create_from_proposal(this->proposal));
+ sa_payload_create_from_proposal(SECURITY_ASSOCIATION,
+ this->proposal));
}
if (this->tsi)
{
diff --git a/src/conftest/hooks/set_proposal_number.c b/src/conftest/hooks/set_proposal_number.c
index a59d96b6d..32b0155cb 100644
--- a/src/conftest/hooks/set_proposal_number.c
+++ b/src/conftest/hooks/set_proposal_number.c
@@ -121,7 +121,7 @@ METHOD(listener_t, message, bool,
}
enumerator->destroy(enumerator);
}
- sa = sa_payload_create_from_proposal_list(updated);
+ sa = sa_payload_create_from_proposal_list(SECURITY_ASSOCIATION, updated);
list->destroy_offset(list, offsetof(proposal_t, destroy));
updated->destroy_offset(updated, offsetof(proposal_t, destroy));
message->add_payload(message, (payload_t*)sa);