From c06dbbabd1498d614d4db88bb4205e2afcd6dab8 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 8 Feb 2006 15:25:34 +0000 Subject: - fixed alot of bugs in child_proposal - near to working state ;-) --- Source/charon/encoding/payloads/sa_payload.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Source/charon/encoding/payloads/sa_payload.h') diff --git a/Source/charon/encoding/payloads/sa_payload.h b/Source/charon/encoding/payloads/sa_payload.h index 90f57b760..b9ba209cb 100644 --- a/Source/charon/encoding/payloads/sa_payload.h +++ b/Source/charon/encoding/payloads/sa_payload.h @@ -111,14 +111,9 @@ struct sa_payload_t { /** * @brief Creates an array of child_proposal_t's in this SA payload. * - * @param proposals the pointer to the first entry of child_proposal_t's is set - * @param proposal_count the number of found proposals is written at this location - * @return - * - SUCCESS if child proposals could be found - * - NOT_FOUND if no child proposal could be found - * - FAILED if a proposal does not contain all needed transforms + * @return a list containing child_proposal_t s */ - status_t (*get_child_proposals) (sa_payload_t *this, child_proposal_t **proposals, size_t *proposal_count); + linked_list_t *(*get_child_proposals) (sa_payload_t *this); /** * @brief Add a child proposal (AH/ESP) to the payload. @@ -156,5 +151,6 @@ sa_payload_t *sa_payload_create(); */ sa_payload_t *sa_payload_create_from_ike_proposals(ike_proposal_t *proposals, size_t proposal_count); +sa_payload_t *sa_payload_create_from_child_proposals(linked_list_t *proposals); #endif /*SA_PAYLOAD_H_*/ -- cgit v1.2.3