[asterisk-commits] qwell: branch 1.8 r305247 - in /branches/1.8: configs/ main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 31 16:25:27 CST 2011
Author: qwell
Date: Mon Jan 31 16:25:23 2011
New Revision: 305247
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=305247
Log:
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
Modified:
branches/1.8/configs/sip.conf.sample
branches/1.8/main/tcptls.c
Modified: branches/1.8/configs/sip.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/configs/sip.conf.sample?view=diff&rev=305247&r1=305246&r2=305247
==============================================================================
--- branches/1.8/configs/sip.conf.sample (original)
+++ branches/1.8/configs/sip.conf.sample Mon Jan 31 16:25:23 2011
@@ -447,7 +447,7 @@
; you should have their certificate installed here so the code can
; verify the authenticity of their certificate.
-;tlscadir=</path/to/ca/dir>
+;tlscapath=</path/to/ca/dir>
; A directory full of CA certificates. The files must be named with
; the CA subject name hash value.
; (see man SSL_CTX_load_verify_locations for more info)
Modified: branches/1.8/main/tcptls.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/tcptls.c?view=diff&rev=305247&r1=305246&r2=305247
==============================================================================
--- branches/1.8/main/tcptls.c (original)
+++ branches/1.8/main/tcptls.c Mon Jan 31 16:25:23 2011
@@ -550,7 +550,7 @@
} 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")) {
More information about the asterisk-commits
mailing list