Moved debug.[ch] to utils folder
[strongswan.git] / src / starter / netkey.c
index c4784c5..921a220 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <library.h>
 #include <hydra.h>
-#include <debug.h>
+#include <utils/debug.h>
 
 #include "files.h"
 
@@ -58,6 +58,13 @@ bool starter_netkey_init(void)
 
 void starter_netkey_cleanup(void)
 {
+       if (!lib->plugins->load(lib->plugins, NULL,
+                       lib->settings->get_str(lib->settings, "starter.load", PLUGINS)))
+       {
+               DBG1(DBG_APP, "unable to load kernel plugins");
+               return;
+       }
        hydra->kernel_interface->flush_sas(hydra->kernel_interface);
        hydra->kernel_interface->flush_policies(hydra->kernel_interface);
+       lib->plugins->unload(lib->plugins);
 }