X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/65c257469f746e64364e5df94f3ed8c6698a9d0a..e627a751fc4d26304657fc20440abb72632b1e6e:/ipsec-tools/racoon/ike_session.h diff --git a/ipsec-tools/racoon/ike_session.h b/ipsec-tools/racoon/ike_session.h index 83a7fe6..2aa1076 100644 --- a/ipsec-tools/racoon/ike_session.h +++ b/ipsec-tools/racoon/ike_session.h @@ -69,7 +69,6 @@ typedef struct ike_session_sastats { struct sastat out_last_poll[8]; } ike_sesssion_sastats_t; - struct ike_session { u_int8_t mode; /* mode of protocol, see ipsec.h */ u_int16_t proto; /* IPPROTO_ESP or IPPROTO_AH */ @@ -110,7 +109,6 @@ struct ike_session { LIST_HEAD(_ph2tree_, phase2handle) ph2tree; LIST_ENTRY(ike_session) chain; - }; typedef enum ike_session_rekey_type { @@ -129,7 +127,7 @@ extern const char * ike_session_stopped_by_peer; extern void ike_session_init (void); extern ike_session_t * ike_session_create_session (ike_session_id_t *session_id); extern void ike_session_release_session (ike_session_t *session); -extern ike_session_t * ike_session_get_session (struct sockaddr_storage *, struct sockaddr_storage *, int); +extern ike_session_t * ike_session_get_session (struct sockaddr_storage *, struct sockaddr_storage *, int, isakmp_index *); extern u_int ike_session_get_rekey_lifetime (int, u_int); extern void ike_session_update_mode (phase2_handle_t *iph2); extern int ike_session_link_phase1 (ike_session_t *, phase1_handle_t *); @@ -151,6 +149,7 @@ extern void ike_session_cleanup_other_established_ph2s (ike_sessio extern void ike_session_stopped_by_controller (ike_session_t *, const char *); extern void ike_sessions_stopped_by_controller (struct sockaddr_storage *, int, const char *); extern void ike_session_purge_ph2s_by_ph1 (phase1_handle_t *); +extern void ike_session_purge_ph1s_by_session (ike_session_t *session); extern phase1_handle_t * ike_session_get_established_ph1 (ike_session_t *); extern phase1_handle_t * ike_session_get_established_or_negoing_ph1 (ike_session_t *); extern void ike_session_update_ph2_ports (phase2_handle_t *);