diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-11-21 11:53:23 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-03-20 17:30:46 +0100 |
commit | 6f5f8ee4b59484e15cc1cba356cfe37b6c4a9c23 (patch) | |
tree | 07edc7d81faa70708c850b312faf9d4e07834cbf /src/libcharon/encoding/payloads/payload.h | |
parent | 0463674971183a72dcc5923e26ff21c7a6a4efed (diff) | |
download | strongswan-6f5f8ee4b59484e15cc1cba356cfe37b6c4a9c23.tar.bz2 strongswan-6f5f8ee4b59484e15cc1cba356cfe37b6c4a9c23.tar.xz |
Use modified encryption payload to encrypt/decrypt complete IKEv1 messages.
Diffstat (limited to 'src/libcharon/encoding/payloads/payload.h')
-rw-r--r-- | src/libcharon/encoding/payloads/payload.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/libcharon/encoding/payloads/payload.h b/src/libcharon/encoding/payloads/payload.h index 84871cfb6..e4ed76abf 100644 --- a/src/libcharon/encoding/payloads/payload.h +++ b/src/libcharon/encoding/payloads/payload.h @@ -247,6 +247,11 @@ enum payload_type_t { * CONFIGURATION_ATTRIBUTE, attribute in a configuration payload. */ CONFIGURATION_ATTRIBUTE, + + /** + * This is not really a payload, but rather the complete IKEv1 message. + */ + ENCRYPTED_V1, }; /** @@ -286,35 +291,35 @@ struct payload_t { /** * Get type of payload. * - * @return type of this payload + * @return type of this payload */ payload_type_t (*get_type) (payload_t *this); /** * Get type of next payload or NO_PAYLOAD (0) if this is the last one. * - * @return type of next payload + * @return type of next payload */ payload_type_t (*get_next_type) (payload_t *this); /** * Set type of next payload. * - * @param type type of next payload + * @param type type of next payload */ void (*set_next_type) (payload_t *this,payload_type_t type); /** * Get length of payload. * - * @return length of this payload + * @return length of this payload */ size_t (*get_length) (payload_t *this); /** * Verifies payload structure and makes consistence check. * - * @return SUCCESS, FAILED if consistence not given + * @return SUCCESS, FAILED if consistence not given */ status_t (*verify) (payload_t *this); |