aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-01-28 16:36:50 +0100
committerTobias Brunner <tobias@strongswan.org>2014-02-12 14:34:32 +0100
commit7a684aece4998bf9469e2974b06cfe49a7845a7a (patch)
treed36b353bc13175b94ec14ce16a109427cadd8cad
parentdbed07782ba9dc047040bb8a65665ab9c72d54ac (diff)
downloadstrongswan-7a684aece4998bf9469e2974b06cfe49a7845a7a.tar.bz2
strongswan-7a684aece4998bf9469e2974b06cfe49a7845a7a.tar.xz
lib: Add default config fallback for configured namespace
All settings in the configured global namespace fall back to libstrongswan.
-rw-r--r--src/libstrongswan/library.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c
index e0876ef9f..c075fd8b4 100644
--- a/src/libstrongswan/library.c
+++ b/src/libstrongswan/library.c
@@ -293,6 +293,9 @@ bool library_init(char *settings, const char *namespace)
this->objects = hashtable_create((hashtable_hash_t)hash,
(hashtable_equals_t)equals, 4);
this->public.settings = settings_create(settings);
+ /* all namespace settings may fall back to libstrongswan */
+ lib->settings->add_fallback(lib->settings, lib->ns, "libstrongswan");
+
this->public.hosts = host_resolver_create();
this->public.proposal = proposal_keywords_create();
this->public.caps = capabilities_create();