aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon-systemd/charon-systemd.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-02-08 17:19:20 +0100
committerTobias Brunner <tobias@strongswan.org>2016-03-08 10:56:19 +0100
commitbc4e689db1116290ebee471baa25ae7802c676f7 (patch)
tree47a2afb2fbc73d7b02b7a796a5cadd31c0d2d95a /src/charon-systemd/charon-systemd.c
parent5c8dc908d0709d534d3e76d69d49209ab719c6ac (diff)
downloadstrongswan-bc4e689db1116290ebee471baa25ae7802c676f7.tar.bz2
strongswan-bc4e689db1116290ebee471baa25ae7802c676f7.tar.xz
charon-systemd: Inherit all settings from the charon section
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).
Diffstat (limited to 'src/charon-systemd/charon-systemd.c')
-rw-r--r--src/charon-systemd/charon-systemd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/charon-systemd/charon-systemd.c b/src/charon-systemd/charon-systemd.c
index a83db5ac4..5c7bbd779 100644
--- a/src/charon-systemd/charon-systemd.c
+++ b/src/charon-systemd/charon-systemd.c
@@ -325,6 +325,15 @@ static plugin_feature_t features[] = {
};
/**
+ * Add namespace alias
+ */
+static void __attribute__ ((constructor))register_namespace()
+{
+ /* inherit settings from charon */
+ library_add_namespace("charon");
+}
+
+/**
* Main function, starts the daemon.
*/
int main(int argc, char *argv[])