X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/c8d8bee0bee0298e25cb827876f57e58cc0a938c..d06a7ccbc5c7dbb1b65b08cfdbb7c4ec0824c666:/ipsec-tools/racoon/ike_session.c diff --git a/ipsec-tools/racoon/ike_session.c b/ipsec-tools/racoon/ike_session.c index e40f898..184fbc8 100644 --- a/ipsec-tools/racoon/ike_session.c +++ b/ipsec-tools/racoon/ike_session.c @@ -1143,6 +1143,22 @@ ike_sessions_stopped_by_controller (struct sockaddr_storage *remote, } } +void +ike_session_purge_ph1s_by_session (ike_session_t *session) +{ + phase1_handle_t *iph1; + phase1_handle_t *next_iph1 = NULL; + + LIST_FOREACH_SAFE(iph1, &session->ph1tree, ph1ofsession_chain, next_iph1) { + plog(ASL_LEVEL_DEBUG, "deleteallph1 of given session: got a ph1 handler...\n"); + + vpncontrol_notify_ike_failed(VPNCTL_NTYPE_NO_PROPOSAL_CHOSEN, FROM_REMOTE, + iph1_get_remote_v4_address(iph1), 0, NULL); + + ike_session_unlink_phase1(iph1); + } +} + void ike_session_purge_ph2s_by_ph1 (phase1_handle_t *iph1) {