aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-02-08 17:22:23 +0100
committerTobias Brunner <tobias@strongswan.org>2016-03-08 10:56:19 +0100
commit2e190dca041a02877b9d639b92c00344c01c0743 (patch)
tree1d9c5c2c390aa9672a232519f4e5ae564d77dcb9
parentbc4e689db1116290ebee471baa25ae7802c676f7 (diff)
downloadstrongswan-2e190dca041a02877b9d639b92c00344c01c0743.tar.bz2
strongswan-2e190dca041a02877b9d639b92c00344c01c0743.tar.xz
charon-svc: Inherit all settings from the charon section
Same as with charon-systemd.
-rw-r--r--src/charon-svc/charon-svc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/charon-svc/charon-svc.c b/src/charon-svc/charon-svc.c
index 522cd127e..823b366c0 100644
--- a/src/charon-svc/charon-svc.c
+++ b/src/charon-svc/charon-svc.c
@@ -189,6 +189,15 @@ static int service_wait()
}
/**
+ * Add namespace alias
+ */
+static void __attribute__ ((constructor))register_namespace()
+{
+ /* inherit settings from charon */
+ library_add_namespace("charon");
+}
+
+/**
* Initialize and run charon using a wait function
*/
static void init_and_run(DWORD dwArgc, LPTSTR *lpszArgv, int (*wait)())