]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
charon-systemd: Inherit all settings from the charon section
authorTobias Brunner <tobias@strongswan.org>
Mon, 8 Feb 2016 16:19:20 +0000 (17:19 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 8 Mar 2016 09:56:19 +0000 (10:56 +0100)
Our default config files are very charon specific.  So to avoid
confusion when only charon-systemd is installed we just default to all
settings defined for charon.  Since charon-systemd probably won't be used
together with charon this should not cause conflicts (settings may still
be overridden via the charon-systemd section).

src/charon-systemd/charon-systemd.c

index a83db5ac4f88aafd3785f1811a4f31f489d76784..5c7bbd779510c00944993a5e5239642aaa7a7e26 100644 (file)
@@ -324,6 +324,15 @@ static plugin_feature_t features[] = {
                PLUGIN_PROVIDE(CUSTOM, "systemd-journal"),
 };
 
+/**
+ * Add namespace alias
+ */
+static void __attribute__ ((constructor))register_namespace()
+{
+       /* inherit settings from charon */
+       library_add_namespace("charon");
+}
+
 /**
  * Main function, starts the daemon.
  */