Extend sa_payload for IKEv1 support
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user