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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">main/iostream.c: fix build with libressl<br><br>Fix the following build failure with libressl by using SSL_is_server<br>which is available since version 2.7.0 and<br>https://github.com/libressl-portable/openbsd/commit/d7ec516916c5eaac29b02d7a8ac6570f63b458f7:<br><br>iostream.c: In function 'ast_iostream_close':<br>iostream.c:559:41: error: invalid use of incomplete typedef 'SSL' {aka 'struct ssl_st'}<br>  559 |                         if (!stream->ssl->server) {<br>      |                                         ^~<br><br>ASTERISK-30107 #close<br><br>Fixes: - http://autobuild.buildroot.org/results/ce4d62d00bb77ba5b303cacf6be7e350581a62f9<br>Change-Id: Iea7f34970297f2fb50285d73462d0174ba7e9587<br>---<br>M main/iostream.c<br>1 file changed, 22 insertions(+), 1 deletion(-)<br><br></pre>
<pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/iostream.c b/main/iostream.c</span><br><span>index d060b6d..7727983 100644</span><br><span>--- a/main/iostream.c</span><br><span>+++ b/main/iostream.c</span><br><span>@@ -553,7 +553,7 @@</span><br><span>                                       ERR_error_string(sslerr, err), ssl_error_to_string(sslerr, res));</span><br><span>                    }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100000L)</span><br><span style="color: hsl(120, 100%, 40%);">+#if !(defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x2070000L)) && (OPENSSL_VERSION_NUMBER >= 0x10100000L)</span><br><span>                         if (!SSL_is_server(stream->ssl)) {</span><br><span> #else</span><br><span>                       if (!stream->ssl->server) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19949">change 19949</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/+/19949"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iea7f34970297f2fb50285d73462d0174ba7e9587 </div>
<div style="display:none"> Gerrit-Change-Number: 19949 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean@seanbright.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-Reviewer: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-CC: Fabrice Fontaine <fontaine.fabrice@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>