[Asterisk-code-review] tcptls: Fix notice when TLS is enabled but not configured. (asterisk[master])

Alexander Traud asteriskteam at digium.com
Wed Apr 1 08:38:53 CDT 2020


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14037 )


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/37/14037/1

diff --git a/main/tcptls.c b/main/tcptls.c
index c9ebeb9..211dc83 100644
--- a/main/tcptls.c
+++ b/main/tcptls.c
@@ -263,7 +263,7 @@
 			X509_free(peer);
 		}
 #else
-		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");
 		ast_tcptls_close_session_file(tcptls_session);
 		ao2_ref(tcptls_session, -1);
 		return NULL;
@@ -383,7 +383,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/+/14037
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28
Gerrit-Change-Number: 14037
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/f7c4465f/attachment.html>


More information about the asterisk-code-review mailing list