diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-01-28 16:36:50 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-02-12 14:34:32 +0100 |
commit | 7a684aece4998bf9469e2974b06cfe49a7845a7a (patch) | |
tree | d36b353bc13175b94ec14ce16a109427cadd8cad | |
parent | dbed07782ba9dc047040bb8a65665ab9c72d54ac (diff) | |
download | strongswan-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.c | 3 |
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(); |