aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/encoding/message.h')
-rw-r--r--Source/charon/encoding/message.h26
1 files changed, 10 insertions, 16 deletions
diff --git a/Source/charon/encoding/message.h b/Source/charon/encoding/message.h
index e3be83653..98f9d8a22 100644
--- a/Source/charon/encoding/message.h
+++ b/Source/charon/encoding/message.h
@@ -27,6 +27,7 @@
#include <sa/ike_sa_id.h>
#include <network/packet.h>
#include <encoding/payloads/ike_header.h>
+#include <encoding/payloads/notify_payload.h>
#include <utils/linked_list.h>
#include <transforms/crypters/crypter.h>
#include <transforms/signers/signer.h>
@@ -141,22 +142,6 @@ struct message_t {
exchange_type_t (*get_exchange_type) (message_t *this);
/**
- * @brief Sets the original initiator flag.
- *
- * @param this message_t object
- * @param original_initiator TRUE if message is from original initiator
- */
- void (*set_original_initiator) (message_t *this,bool original_initiator);
-
- /**
- * @brief Gets original initiator flag.
- *
- * @param this message_t object
- * @return TRUE if message is from original initiator, FALSE otherwise
- */
- bool (*get_original_initiator) (message_t *this);
-
- /**
* @brief Sets the request flag.
*
* @param this message_t object
@@ -340,4 +325,13 @@ message_t * message_create_from_packet(packet_t *packet);
*/
message_t * message_create();
+/**
+ * Creates an message_t object of type reply containing a notify payload.
+ *
+ * @return created message_t object
+ *
+ * @ingroup encoding
+ */
+message_t *message_create_notify_reply(host_t *source, host_t *destination, exchange_type_t exchange_type, bool original_initiator,ike_sa_id_t *ike_sa_id,notify_message_type_t notify_type);
+
#endif /*MESSAGE_H_*/