Added method to get encoded version if ID_V1 payload.

This commit is contained in:
Tobias Brunner
2012-03-20 17:31:21 +01:00
parent 0b0191e143
commit 33493a5253
2 changed files with 17 additions and 0 deletions
@@ -54,6 +54,13 @@ struct id_payload_t {
*/
traffic_selector_t* (*get_ts)(id_payload_t *this);
/**
* Get encoded payload without fixed payload header (used for IKEv1).
*
* @return encoded payload (gets allocated)
*/
chunk_t (*get_encoded)(id_payload_t *this);
/**
* Destroys an id_payload_t object.
*/