[Asterisk-code-review] tcptls: Fix notice when TLS is enabled but not configured. (asterisk[13])
Alexander Traud
asteriskteam at digium.com
Wed Apr 1 08:50:55 CDT 2020
Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14038 )
Change subject: tcptls: Fix notice when TLS is enabled but not configured.
......................................................................
tcptls: Fix notice when TLS is enabled but not configured.
ASTERISK-28797
Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28
---
M main/tcptls.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/38/14038/1
diff --git a/main/tcptls.c b/main/tcptls.c
index 8a2422f..998deb1 100644
--- a/main/tcptls.c
+++ b/main/tcptls.c
@@ -846,7 +846,7 @@
ast_sockaddr_stringify(&tcptls_session->remote_address));
#ifndef DO_SSL
if (tcptls_session->parent->tls_cfg) {
- ast_log(LOG_ERROR, "Attempted a TLS connection without OpenSSL support. This will not work!\n");
+ ast_log(LOG_ERROR, "Attempted TLS client: ./configure with OpenSSL Development Headers installed!\n");
}
#endif
ao2_ref(tcptls_session, -1);
@@ -939,7 +939,7 @@
{
#ifndef DO_SSL
if (cfg->enabled) {
- ast_log(LOG_NOTICE, "Configured without OpenSSL Development Headers");
+ ast_log(LOG_ERROR, "Attempted TLS server: ./configure with OpenSSL Development Headers installed!\n");
cfg->enabled = 0;
}
return 0;
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14038
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28
Gerrit-Change-Number: 14038
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200401/73d646ea/attachment.html>
More information about the asterisk-code-review
mailing list