settings: strongswan.conf must be loaded explicitly

This commit is contained in:
Tobias Brunner
2014-05-15 11:28:10 +02:00
parent da45f9e994
commit 4b670a20a9
5 changed files with 20 additions and 9 deletions
+7
View File
@@ -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");