aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/message.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-11-24 18:09:06 +0100
committerMartin Willi <martin@revosec.ch>2011-01-05 16:45:52 +0100
commit9ca5d0280eb2e4c9d4f4d9ba4307f72a86dbbe56 (patch)
treec173fb7418ecd42f8fcf99933ebb669e08713351 /src/libcharon/encoding/message.h
parenta6da3795d668b806b2462d8874c9931a6e9821ee (diff)
downloadstrongswan-9ca5d0280eb2e4c9d4f4d9ba4307f72a86dbbe56.tar.bz2
strongswan-9ca5d0280eb2e4c9d4f4d9ba4307f72a86dbbe56.tar.xz
Moved check if packet already encoded to ike_sa, avoids message() hook invocation twice
Diffstat (limited to 'src/libcharon/encoding/message.h')
-rw-r--r--src/libcharon/encoding/message.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcharon/encoding/message.h b/src/libcharon/encoding/message.h
index a04048ed0..51197308c 100644
--- a/src/libcharon/encoding/message.h
+++ b/src/libcharon/encoding/message.h
@@ -258,6 +258,13 @@ struct message_t {
status_t (*generate) (message_t *this, aead_t *aead, packet_t **packet);
/**
+ * Check if the message has already been encoded using generate().
+ *
+ * @return TRUE if message has been encoded
+ */
+ bool (*is_encoded)(message_t *this);
+
+ /**
* Gets the source host informations.
*
* @warning Returned host_t object is not getting cloned,