diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-12-13 15:31:47 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-21 11:46:20 +0100 |
commit | ae82265a4695a58b16893e3dc2d3c616907a2a9a (patch) | |
tree | 8e7ce009f411b12c675b3bf0e55d06c051b1561a /src/conftest/config.c | |
parent | d82372fab87ddbe24014bd0208472c6759a9266c (diff) | |
download | strongswan-ae82265a4695a58b16893e3dc2d3c616907a2a9a.tar.bz2 strongswan-ae82265a4695a58b16893e3dc2d3c616907a2a9a.tar.xz |
Add the ability to use a named pool for conftest configs
Diffstat (limited to 'src/conftest/config.c')
-rw-r--r-- | src/conftest/config.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conftest/config.c b/src/conftest/config.c index 22c9d23e0..ae0d93460 100644 --- a/src/conftest/config.c +++ b/src/conftest/config.c @@ -244,7 +244,7 @@ static peer_cfg_t *load_peer_config(private_config_t *this, child_cfg_t *child_cfg; enumerator_t *enumerator; identification_t *lid, *rid; - char *child, *policy; + char *child, *policy, *pool; uintptr_t strength; ike_cfg = load_ike_config(this, settings, config); @@ -280,6 +280,11 @@ static peer_cfg_t *load_peer_config(private_config_t *this, } auth->add(auth, AUTH_RULE_IDENTITY, rid); peer_cfg->add_auth_cfg(peer_cfg, auth, FALSE); + pool = settings->get_str(settings, "configs.%s.named_pool", NULL, config); + if (pool) + { + peer_cfg->add_pool(peer_cfg, pool); + } DBG1(DBG_CFG, "loaded config %s: %Y - %Y", config, lid, rid); |