child-sa-manager: Add a global manager storing CHILD_SA relations
To quickly check out IKE_SAs and find associated CHILD_SAs, the child_sa_manager stores relations between CHILD_SAs and IKE_SAs. It provides CHILD_SA specific IKE_SA checkout functions wrapping the ike_sa_manager.
This commit is contained in:
@@ -480,6 +480,7 @@ static void destroy(private_daemon_t *this)
|
||||
DESTROY_IF(this->kernel_handler);
|
||||
DESTROY_IF(this->public.traps);
|
||||
DESTROY_IF(this->public.shunts);
|
||||
DESTROY_IF(this->public.child_sa_manager);
|
||||
DESTROY_IF(this->public.ike_sa_manager);
|
||||
DESTROY_IF(this->public.controller);
|
||||
DESTROY_IF(this->public.eap);
|
||||
@@ -606,6 +607,7 @@ METHOD(daemon_t, initialize, bool,
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
this->public.child_sa_manager = child_sa_manager_create();
|
||||
|
||||
/* Queue start_action job */
|
||||
lib->processor->queue_job(lib->processor, (job_t*)start_action_job_create());
|
||||
|
||||
Reference in New Issue
Block a user