aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/message.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-16 16:09:15 +0000
committerMartin Willi <martin@strongswan.org>2005-11-16 16:09:15 +0000
commit523526ec9248791c69b6149135e2ea278cd06f68 (patch)
tree5a47b568ed120cc02bb690ece41ddbdbbc1b21c0 /Source/charon/message.h
parent62c9615efc04cfb3895c9c02f471d6c460315ae8 (diff)
downloadstrongswan-523526ec9248791c69b6149135e2ea278cd06f68.tar.bz2
strongswan-523526ec9248791c69b6149135e2ea278cd06f68.tar.xz
- implemented generate-method
- untested
Diffstat (limited to 'Source/charon/message.h')
-rw-r--r--Source/charon/message.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/Source/charon/message.h b/Source/charon/message.h
index 62ab11d02..7fbeb2e7a 100644
--- a/Source/charon/message.h
+++ b/Source/charon/message.h
@@ -28,6 +28,9 @@
#include "ike_sa_id.h"
#include "payloads/ike_header.h"
+
+
+
/**
* @brief This class is used to represent an IKEv2-Message.
*
@@ -136,6 +139,17 @@ struct message_s {
bool (*get_request) (message_t *this);
/**
+ * @brief Append a payload to the message.
+ *
+ * @param this message_t object
+ * @param payload payload to append
+ * @return
+ * - SUCCESS or
+ * - OUT_OF_RES
+ */
+ status_t (*add_payload) (message_t *this, payload_t *payload);
+
+ /**
* @brief Generates the UDP packet of specific message
*
* @param this message_t object
@@ -144,7 +158,12 @@ struct message_s {
* - EXCHANGE_TYPE_NOT_SET if exchange type is currently not set
* ....
*/
- status_t (*generate_packet) (message_t *this, packet_t **packet);
+
+ status_t (*generate) (message_t *this, packet_t **packet);
+ status_t (*get_source) (message_t *this, host_t **host);
+ status_t (*set_source) (message_t *this, host_t *host);
+ status_t (*get_destination) (message_t *this, host_t **host);
+ status_t (*set_destination) (message_t *this, host_t *host);
/**
* @brief Destroys a message and all including objects