diff options
Diffstat (limited to 'keyexchange/isakmpd-20041012/anytun_key.h')
-rw-r--r-- | keyexchange/isakmpd-20041012/anytun_key.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/keyexchange/isakmpd-20041012/anytun_key.h b/keyexchange/isakmpd-20041012/anytun_key.h new file mode 100644 index 0000000..e2e23c4 --- /dev/null +++ b/keyexchange/isakmpd-20041012/anytun_key.h @@ -0,0 +1,29 @@ +#ifndef _ANYTUN_KEY_H_ +#define _ANYTUN_KEY_H_ + +#include <sys/types.h> +#include <sys/queue.h> + +struct proto; +struct sa; +struct sockaddr; +struct kernel_sa; + +extern int anytun_key_socket; + +extern void anytun_key_connection_check(char *); +extern int anytun_key_delete_spi(struct sa *, struct proto *, int); +extern int anytun_key_enable_sa(struct sa *, struct sa *); +extern int anytun_key_enable_spi(in_addr_t, in_addr_t, in_addr_t, + in_addr_t, u_int8_t *, u_int8_t, in_addr_t); +extern struct sa_kinfo *anytun_key_get_kernel_sa(u_int8_t *, size_t, u_int8_t, struct sockaddr *); +extern u_int8_t *anytun_key_get_spi(size_t *, u_int8_t, struct sockaddr *, + struct sockaddr *, u_int32_t); +extern int anytun_key_group_spis(struct sa *, struct proto *, + struct proto *, int); +extern void anytun_key_handler(int); +extern int anytun_key_open(void); +extern int anytun_key_set_spi(struct sa *, struct proto *, int, + struct sa *); + +#endif /* _ANYTUN_KEY_H_ */ |