aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/netkey.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-05-14 11:22:57 +0200
committerTobias Brunner <tobias@strongswan.org>2012-06-11 17:33:29 +0200
commit163b22738648c9c915cb1107e7cbf413cbff6c94 (patch)
treebab916ccd04c8988b00cf13cf064cc92337f45dc /src/starter/netkey.c
parentbcfb6b8efc1762b0efe22986144e6a2f85f1ed8e (diff)
downloadstrongswan-163b22738648c9c915cb1107e7cbf413cbff6c94.tar.bz2
strongswan-163b22738648c9c915cb1107e7cbf413cbff6c94.tar.xz
starter: Migrated logging to libstrongswan.
Diffstat (limited to 'src/starter/netkey.c')
-rw-r--r--src/starter/netkey.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/starter/netkey.c b/src/starter/netkey.c
index 6646195cb..c4784c533 100644
--- a/src/starter/netkey.c
+++ b/src/starter/netkey.c
@@ -16,17 +16,13 @@
#include <sys/stat.h>
#include <stdlib.h>
-#include <freeswan.h>
+#include <library.h>
#include <hydra.h>
-
-#include "../pluto/constants.h"
-#include "../pluto/defs.h"
-#include "../pluto/log.h"
+#include <debug.h>
#include "files.h"
-bool
-starter_netkey_init(void)
+bool starter_netkey_init(void)
{
struct stat stb;
@@ -41,9 +37,7 @@ starter_netkey_init(void)
/* now test again */
if (stat(PROC_NETKEY, &stb) != 0)
{
- DBG(DBG_CONTROL,
- DBG_log("kernel appears to lack the native netkey IPsec stack")
- )
+ DBG2(DBG_APP, "kernel appears to lack the native netkey IPsec stack");
return FALSE;
}
}
@@ -58,14 +52,11 @@ starter_netkey_init(void)
ignore_result(system("modprobe -qv xfrm_user"));
}
- DBG(DBG_CONTROL,
- DBG_log("Found netkey IPsec stack")
- )
+ DBG2(DBG_APP, "found netkey IPsec stack");
return TRUE;
}
-void
-starter_netkey_cleanup(void)
+void starter_netkey_cleanup(void)
{
hydra->kernel_interface->flush_sas(hydra->kernel_interface);
hydra->kernel_interface->flush_policies(hydra->kernel_interface);