charon-svc: Inherit all settings from the charon section
authorTobias Brunner <tobias@strongswan.org>
Mon, 8 Feb 2016 16:22:23 +0000 (17:22 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 8 Mar 2016 09:56:19 +0000 (10:56 +0100)
Same as with charon-systemd.

src/charon-svc/charon-svc.c

index 522cd12..823b366 100644 (file)
@@ -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)())