diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-18 10:31:56 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-18 10:31:56 +0000 |
commit | 501a41b970fac1b36fbf356604753b80032906e9 (patch) | |
tree | 72075e7d6f5b67df2b3f808f80da082e276240f2 /Source/charon/message.c | |
parent | 6f17c7d68ec3726a2dc323ee06c8f6d98b68958b (diff) | |
download | strongswan-501a41b970fac1b36fbf356604753b80032906e9.tar.bz2 strongswan-501a41b970fac1b36fbf356604753b80032906e9.tar.xz |
Diffstat (limited to 'Source/charon/message.c')
-rw-r--r-- | Source/charon/message.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/charon/message.c b/Source/charon/message.c index 5d7e0eaa9..f290b837c 100644 --- a/Source/charon/message.c +++ b/Source/charon/message.c @@ -430,6 +430,12 @@ static status_t get_destination(private_message_t *this, host_t **host) } +static status_t get_payload_iterator(private_message_t *this, linked_list_iterator_t **iterator) +{ + return this->payloads->create_iterator(this->payloads, iterator, TRUE); +} + + /** * Implements message_t's generate function. * See #message_s.generate. @@ -776,6 +782,7 @@ message_t *message_create_from_packet(packet_t *packet) this->public.get_source = (status_t (*) (message_t*,host_t**)) get_source; this->public.set_destination = (status_t (*) (message_t*,host_t*)) set_destination; this->public.get_destination = (status_t (*) (message_t*,host_t**)) get_destination; + this->public.get_payload_iterator = (status_t (*) (message_t *, linked_list_iterator_t **)) get_payload_iterator; this->public.parse_header = (status_t (*) (message_t *)) parse_header; this->public.parse_body = (status_t (*) (message_t *)) parse_body; this->public.destroy = (status_t(*)(message_t*))destroy; |