diff options
author | Martin Willi <martin@revosec.ch> | 2014-10-23 15:42:21 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-02-20 13:34:49 +0100 |
commit | e732fb11a915b5e760a8c1fbd1a5f12581912787 (patch) | |
tree | 3072c8bac606ae2b354ba6180e0b4cf242c3d490 /src/libcharon/daemon.c | |
parent | 85b238887d01c030a7d9240db2031601211a6283 (diff) | |
download | strongswan-e732fb11a915b5e760a8c1fbd1a5f12581912787.tar.bz2 strongswan-e732fb11a915b5e760a8c1fbd1a5f12581912787.tar.xz |
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.
Diffstat (limited to 'src/libcharon/daemon.c')
-rw-r--r-- | src/libcharon/daemon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/daemon.c b/src/libcharon/daemon.c index 3ae7c4e6f..f3859f912 100644 --- a/src/libcharon/daemon.c +++ b/src/libcharon/daemon.c @@ -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()); |