Moved check if packet already encoded to ike_sa, avoids message() hook invocation twice

This commit is contained in:
Martin Willi
2011-01-05 16:45:52 +01:00
parent a6da3795d6
commit 9ca5d0280e
3 changed files with 16 additions and 17 deletions
+7
View File
@@ -257,6 +257,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.
*