aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/payloads/sa_payload.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/encoding/payloads/sa_payload.h')
-rw-r--r--Source/charon/encoding/payloads/sa_payload.h10
1 files changed, 3 insertions, 7 deletions
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_*/