diff options
author | Martin Willi <martin@revosec.ch> | 2011-11-17 11:27:46 +0000 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-03-20 17:30:42 +0100 |
commit | 38fb67fbf18489f40845b072e4ed50b1f6cf0c9c (patch) | |
tree | 01e3e43880ec5cf7712607bfd37a6811cbb4cbce /src/conftest/hooks | |
parent | e9b55b832546d05f464bdddbe779ed21cd17b624 (diff) | |
download | strongswan-38fb67fbf18489f40845b072e4ed50b1f6cf0c9c.tar.bz2 strongswan-38fb67fbf18489f40845b072e4ed50b1f6cf0c9c.tar.xz |
Add a payload.get_header_length() method, remove header length definitions
Diffstat (limited to 'src/conftest/hooks')
-rw-r--r-- | src/conftest/hooks/ike_auth_fill.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conftest/hooks/ike_auth_fill.c b/src/conftest/hooks/ike_auth_fill.c index 2843d60c1..052a4be08 100644 --- a/src/conftest/hooks/ike_auth_fill.c +++ b/src/conftest/hooks/ike_auth_fill.c @@ -51,7 +51,10 @@ struct private_ike_auth_fill_t { /** size of non ESP-Marker */ #define NON_ESP_MARKER_LEN 4 - +/** length of fixed encryption payload header */ +#define ENCRYPTION_PAYLOAD_HEADER_LENGTH 4 +/** length of fixed cert payload header */ +#define CERT_PAYLOAD_HEADER_LENGTH 5 /** * Calculate packet size on wire (without ethernet/IP header) */ |