diff options
author | Martin Willi <martin@strongswan.org> | 2005-12-05 16:09:42 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-12-05 16:09:42 +0000 |
commit | ba425b87dd0aee3f03df39a5f778f8cec0f3ec7a (patch) | |
tree | d1f5617b287f97c0ac860f3cfe325a6325dda391 /Source/charon/threads/kernel_interface.h | |
parent | e70c7feb028e20913af092fbe204ec648bbeda65 (diff) | |
download | strongswan-ba425b87dd0aee3f03df39a5f778f8cec0f3ec7a.tar.bz2 strongswan-ba425b87dd0aee3f03df39a5f778f8cec0f3ec7a.tar.xz |
- kernel interface hacks, works partially
- interface must be redefined
Diffstat (limited to 'Source/charon/threads/kernel_interface.h')
-rw-r--r-- | Source/charon/threads/kernel_interface.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/charon/threads/kernel_interface.h b/Source/charon/threads/kernel_interface.h index 3ade97426..fe32e36c5 100644 --- a/Source/charon/threads/kernel_interface.h +++ b/Source/charon/threads/kernel_interface.h @@ -24,6 +24,8 @@ #define KERNEL_INTERFACE_H_ +#include <network/host.h> +#include <encoding/payloads/proposal_substructure.h> typedef struct kernel_interface_t kernel_interface_t; @@ -34,6 +36,23 @@ typedef struct kernel_interface_t kernel_interface_t; */ struct kernel_interface_t { + status_t (*get_spi) (kernel_interface_t *this, host_t *src, host_t *dest, protocol_id_t protocol, bool tunnel_mode, u_int32_t *spi); + + status_t (*add_sa)(kernel_interface_t *this, + host_t *me, + host_t *other, + u_int32_t spi, + int protocol, + bool tunnel_mode, + encryption_algorithm_t enc_alg, + size_t enc_size, + chunk_t enc_key, + integrity_algorithm_t int_alg, + size_t int_size, + chunk_t int_key, + bool replace); + + /** * @brief Destroys a kernel_interface object. * |