]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 522cd127e6d54a337e2600b3d8ed36baa5dc42fe..823b366c07fe90066c2cb304d648f5f4509e2e7f 100644 (file)
@@ -188,6 +188,15 @@ static int service_wait()
        return 0;
 }
 
+/**
+ * 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
  */