daemon: Create global redirect manager instance
authorTobias Brunner <tobias@strongswan.org>
Mon, 20 Apr 2015 12:41:09 +0000 (14:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Mar 2016 15:02:58 +0000 (16:02 +0100)
src/libcharon/daemon.c
src/libcharon/daemon.h

index 799c3f6..cef8b89 100644 (file)
@@ -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;
index 654e22a..48b9c7e 100644 (file)
@@ -190,6 +190,7 @@ typedef struct daemon_t daemon_t;
 #include <sa/child_sa_manager.h>
 #include <sa/trap_manager.h>
 #include <sa/shunt_manager.h>
+#include <sa/redirect_manager.h>
 #include <config/backend_manager.h>
 #include <sa/eap/eap_manager.h>
 #include <sa/xauth/xauth_manager.h>
@@ -265,6 +266,11 @@ struct daemon_t {
        shunt_manager_t *shunts;
 
        /**
+        * Manager for IKE redirect providers
+        */
+       redirect_manager_t *redirect;
+
+       /**
         * Manager for the different configuration backends.
         */
        backend_manager_t *backends;