<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14074">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, approved
  George Joseph: Looks good to me, but someone else must approve
  Friendly Automation: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tcptls: Fix notice when TLS is enabled but not supported.<br><br>ASTERISK-28797<br><br>Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28<br>---<br>M main/tcptls.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/tcptls.c b/main/tcptls.c</span><br><span>index c9ebeb9..6a26cb8 100644</span><br><span>--- a/main/tcptls.c</span><br><span>+++ b/main/tcptls.c</span><br><span>@@ -263,7 +263,7 @@</span><br><span>                   X509_free(peer);</span><br><span>             }</span><br><span> #else</span><br><span style="color: hsl(0, 100%, 40%);">-              ast_log(LOG_ERROR, "Attempted a TLS connection without OpenSSL support. This will not work!\n");</span><br><span style="color: hsl(120, 100%, 40%);">+            ast_log(LOG_ERROR, "TLS client failed: Asterisk is compiled without OpenSSL support. Install OpenSSL development headers and rebuild Asterisk after running ./configure\n");</span><br><span>               ast_tcptls_close_session_file(tcptls_session);</span><br><span>               ao2_ref(tcptls_session, -1);</span><br><span>                 return NULL;</span><br><span>@@ -383,7 +383,7 @@</span><br><span> {</span><br><span> #ifndef DO_SSL</span><br><span>    if (cfg->enabled) {</span><br><span style="color: hsl(0, 100%, 40%);">-          ast_log(LOG_NOTICE, "Configured without OpenSSL Development Headers");</span><br><span style="color: hsl(120, 100%, 40%);">+              ast_log(LOG_ERROR, "TLS server failed: Asterisk is compiled without OpenSSL support. Install OpenSSL development headers and rebuild Asterisk after running ./configure\n");</span><br><span>               cfg->enabled = 0;</span><br><span>         }</span><br><span>    return 0;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14074">change 14074</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/14074"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28 </div>
<div style="display:none"> Gerrit-Change-Number: 14074 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>