aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-11-24 11:39:31 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:30:52 +0100
commite174e0d4455e30a8d9a1900916a195f20588afdb (patch)
tree104f28bb73af56724f74fe4e7edf6edd9e06d839 /src/conftest/hooks
parentd08269c700d19bc362e6bd070abf69e87c42f025 (diff)
downloadstrongswan-e174e0d4455e30a8d9a1900916a195f20588afdb.tar.bz2
strongswan-e174e0d4455e30a8d9a1900916a195f20588afdb.tar.xz
Added not-yet used sa_payload parameters used in IKEv1
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, 3 insertions, 5 deletions
diff --git a/src/conftest/hooks/custom_proposal.c b/src/conftest/hooks/custom_proposal.c
index 9522335b1..4acea18ce 100644
--- a/src/conftest/hooks/custom_proposal.c
+++ b/src/conftest/hooks/custom_proposal.c
@@ -145,8 +145,7 @@ 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(
- SECURITY_ASSOCIATION, new_props);
+ new = sa_payload_create_from_proposals_v2(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 560864db5..b8f961403 100644
--- a/src/conftest/hooks/pretend_auth.c
+++ b/src/conftest/hooks/pretend_auth.c
@@ -295,8 +295,7 @@ static void process_auth_response(private_pretend_auth_t *this,
if (this->proposal)
{
message->add_payload(message, (payload_t*)
- sa_payload_create_from_proposal(SECURITY_ASSOCIATION,
- this->proposal));
+ sa_payload_create_from_proposal_v2(this->proposal));
}
if (this->tsi)
{
diff --git a/src/conftest/hooks/set_proposal_number.c b/src/conftest/hooks/set_proposal_number.c
index 32b0155cb..839ca1f37 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(SECURITY_ASSOCIATION, updated);
+ sa = sa_payload_create_from_proposals_v2(updated);
list->destroy_offset(list, offsetof(proposal_t, destroy));
updated->destroy_offset(updated, offsetof(proposal_t, destroy));
message->add_payload(message, (payload_t*)sa);