diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-28 15:43:05 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-28 15:43:05 +0000 |
commit | 81796a5232a7444aed6e6b02d9c5c2fbc296bda8 (patch) | |
tree | d125aa03e9a3f42e27bfcd337abb38375a708f31 /Source/charon/encoding/message.h | |
parent | b9d9f18874d2cf4de3c9cffeaac716df71a31e99 (diff) | |
download | strongswan-81796a5232a7444aed6e6b02d9c5c2fbc296bda8.tar.bz2 strongswan-81796a5232a7444aed6e6b02d9c5c2fbc296bda8.tar.xz |
- encryptino payload
Diffstat (limited to 'Source/charon/encoding/message.h')
-rw-r--r-- | Source/charon/encoding/message.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/charon/encoding/message.h b/Source/charon/encoding/message.h index 2b2a14a1c..19c00bb76 100644 --- a/Source/charon/encoding/message.h +++ b/Source/charon/encoding/message.h @@ -28,6 +28,8 @@ #include <network/packet.h> #include <encoding/payloads/ike_header.h> #include <utils/linked_list.h> +#include <transforms/crypters/crypter.h> +#include <transforms/signers/signer.h> typedef struct message_t message_t; @@ -218,7 +220,7 @@ struct message_t { * - PARSE_ERROR if corrupted/invalid data found * - VERIFY_ERROR if verification of some payload failed */ - status_t (*parse_body) (message_t *this); + status_t (*parse_body) (message_t *this, crypter_t *crypter, signer_t *signer); /** * @brief Generates the UDP packet of specific message @@ -229,7 +231,9 @@ struct message_t { * - EXCHANGE_TYPE_NOT_SET if exchange type is currently not set * .... */ - status_t (*generate) (message_t *this, packet_t **packet); + status_t (*generate) (message_t *this, crypter_t *crypter, signer_t *signer, packet_t **packet); + + status_t (*verify) (message_t *this); 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); |