From 32ba44424d65227039d236775eb21268a31371b9 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 20 Apr 2015 14:41:09 +0200 Subject: [PATCH] daemon: Create global redirect manager instance --- src/libcharon/daemon.c | 2 ++ src/libcharon/daemon.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/libcharon/daemon.c b/src/libcharon/daemon.c index 799c3f6dc..cef8b8992 100644 --- a/src/libcharon/daemon.c +++ b/src/libcharon/daemon.c @@ -680,6 +680,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.redirect); DESTROY_IF(this->public.controller); DESTROY_IF(this->public.eap); DESTROY_IF(this->public.xauth); @@ -872,6 +873,7 @@ private_daemon_t *daemon_create() this->public.socket = socket_manager_create(); this->public.traps = trap_manager_create(); this->public.shunts = shunt_manager_create(); + this->public.redirect = redirect_manager_create(); this->kernel_handler = kernel_handler_create(); return this; diff --git a/src/libcharon/daemon.h b/src/libcharon/daemon.h index 654e22a07..48b9c7ec3 100644 --- a/src/libcharon/daemon.h +++ b/src/libcharon/daemon.h @@ -190,6 +190,7 @@ typedef struct daemon_t daemon_t; #include #include #include +#include #include #include #include @@ -264,6 +265,11 @@ struct daemon_t { */ shunt_manager_t *shunts; + /** + * Manager for IKE redirect providers + */ + redirect_manager_t *redirect; + /** * Manager for the different configuration backends. */