aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/library.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-05-14 16:05:02 +0200
committerTobias Brunner <tobias@strongswan.org>2014-05-15 11:28:10 +0200
commit4b670a20a9ee0ac5efd806ff804e75fe00509826 (patch)
treecaec3a95b3990471e64a40c346b01d8a166359af /src/libstrongswan/library.c
parentda45f9e994f61324a058def37fbafd5cce75b5f3 (diff)
downloadstrongswan-4b670a20.tar.bz2
strongswan-4b670a20.tar.xz
settings: strongswan.conf must be loaded explicitly
Diffstat (limited to 'src/libstrongswan/library.c')
-rw-r--r--src/libstrongswan/library.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c
index c5bb4cd93..f152a8c1f 100644
--- a/src/libstrongswan/library.c
+++ b/src/libstrongswan/library.c
@@ -298,6 +298,13 @@ bool library_init(char *settings, const char *namespace)
this->objects = hashtable_create((hashtable_hash_t)hash,
(hashtable_equals_t)equals, 4);
+
+#ifdef STRONGSWAN_CONF
+ if (!settings)
+ {
+ settings = STRONGSWAN_CONF;
+ }
+#endif
this->public.settings = settings_create(settings);
/* all namespace settings may fall back to libstrongswan */
lib->settings->add_fallback(lib->settings, lib->ns, "libstrongswan");