aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/message.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-12-03 14:47:58 +0000
committerJan Hutter <jhutter@hsr.ch>2005-12-03 14:47:58 +0000
commit8d68033e5cf37ea91eb160e7b8e1c2d171a356f7 (patch)
tree5dbb4a65d0e65bd22873ed7fce9b2fdcb890a330 /Source/charon/encoding/message.c
parentebae15f0a03dae6b4b04f75b2f690cce4e7d308a (diff)
downloadstrongswan-8d68033e5cf37ea91eb160e7b8e1c2d171a356f7.tar.bz2
strongswan-8d68033e5cf37ea91eb160e7b8e1c2d171a356f7.tar.xz
- authentication with preshared key working but code MUST be cleaned
Diffstat (limited to 'Source/charon/encoding/message.c')
-rw-r--r--Source/charon/encoding/message.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/charon/encoding/message.c b/Source/charon/encoding/message.c
index 7fea8aea3..996f8fb87 100644
--- a/Source/charon/encoding/message.c
+++ b/Source/charon/encoding/message.c
@@ -640,6 +640,14 @@ static packet_t *get_packet (private_message_t *this)
}
/**
+ * Implementation of message_t.get_packet_data.
+ */
+static chunk_t get_packet_data (private_message_t *this)
+{
+ return allocator_clone_chunk(this->packet->data);
+}
+
+/**
* Implementation of message_t.parse_header.
*/
static status_t parse_header(private_message_t *this)
@@ -1163,6 +1171,7 @@ message_t *message_create_from_packet(packet_t *packet)
this->public.parse_body = (status_t (*) (message_t *,crypter_t*,signer_t*)) parse_body;
this->public.verify = (status_t (*) (message_t*)) verify;
this->public.get_packet = (packet_t * (*) (message_t*)) get_packet;
+ this->public.get_packet_data = (chunk_t (*) (message_t *this)) get_packet_data;
this->public.destroy = (void(*)(message_t*))destroy;
/* private values */