Added not-yet used sa_payload parameters used in IKEv1
[strongswan.git] / src / conftest / hooks / custom_proposal.c
index 9522335..4acea18 100644 (file)
@@ -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));
                        }