aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-08-31 18:08:38 +0200
committerTobias Brunner <tobias@strongswan.org>2016-10-04 10:27:35 +0200
commit97c74b565b2870ee889431289c6907a2f5b57b91 (patch)
treeff52a18ba10c823f5922327c0aa64f85a5b8d37d /src
parent3713d3024f404291d88b2bd1108f7fac8a98446c (diff)
downloadstrongswan-97c74b565b2870ee889431289c6907a2f5b57b91.tar.bz2
strongswan-97c74b565b2870ee889431289c6907a2f5b57b91.tar.xz
nm: Make global CA directory configurable
Diffstat (limited to 'src')
-rw-r--r--src/charon-nm/nm/nm_service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charon-nm/nm/nm_service.c b/src/charon-nm/nm/nm_service.c
index 8248d364f..c4dd9e05b 100644
--- a/src/charon-nm/nm/nm_service.c
+++ b/src/charon-nm/nm/nm_service.c
@@ -396,7 +396,8 @@ static gboolean connect_(NMVPNPlugin *plugin, NMConnection *connection,
else
{
/* no certificate defined, fall back to system-wide CA certificates */
- priv->creds->load_ca_dir(priv->creds, NM_CA_DIR);
+ priv->creds->load_ca_dir(priv->creds, lib->settings->get_str(
+ lib->settings, "charon-nm.ca_dir", NM_CA_DIR));
}
if (!gateway)
{