diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-01-31 22:25:23 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-01-31 22:25:23 +0000 |
commit | 681c8583f8e82d4ec45b893041c87d03128f5218 (patch) | |
tree | 63f76f75daca60c24242f218f919a4f24d27f361 /main | |
parent | 0d7f6e4abc4d5a2fe183a37ebe18157b23a8d73d (diff) |
Add alternative name for config option.
The SIP sample configuration had "tlscadir" as the option name, but chan_sip
used the more correct "tlscapath". Now both are accepted.
Discovered (sort of) by a user on IRC in #asterisk
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@305247 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/tcptls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/tcptls.c b/main/tcptls.c index b505f2a01..d0ee3b2aa 100644 --- a/main/tcptls.c +++ b/main/tcptls.c @@ -550,7 +550,7 @@ int ast_tls_read_conf(struct ast_tls_config *tls_cfg, struct ast_tcptls_session_ } else if (!strcasecmp(varname, "tlscafile")) { ast_free(tls_cfg->cafile); tls_cfg->cafile = ast_strdup(value); - } else if (!strcasecmp(varname, "tlscapath")) { + } else if (!strcasecmp(varname, "tlscapath") || !strcasecmp(varname, "tlscadir")) { ast_free(tls_cfg->capath); tls_cfg->capath = ast_strdup(value); } else if (!strcasecmp(varname, "tlsverifyclient")) { |