[Asterisk-code-review] tcptls: Fix notice when TLS is enabled but not supported. (asterisk[16])
Friendly Automation
asteriskteam at digium.com
Mon May 11 05:24:11 CDT 2020
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14074 )
Change subject: tcptls: Fix notice when TLS is enabled but not supported.
......................................................................
tcptls: Fix notice when TLS is enabled but not supported.
ASTERISK-28797
Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28
---
M main/tcptls.c
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Joshua Colp: Looks good to me, approved
George Joseph: Looks good to me, but someone else must approve
Friendly Automation: Approved for Submit
diff --git a/main/tcptls.c b/main/tcptls.c
index c9ebeb9..6a26cb8 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, "TLS client failed: Asterisk is compiled without OpenSSL support. Install OpenSSL development headers and rebuild Asterisk after running ./configure\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, "TLS server failed: Asterisk is compiled without OpenSSL support. Install OpenSSL development headers and rebuild Asterisk after running ./configure\n");
cfg->enabled = 0;
}
return 0;
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14074
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28
Gerrit-Change-Number: 14074
Gerrit-PatchSet: 3
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200511/1e0f747f/attachment.html>
More information about the asterisk-code-review
mailing list