<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19948">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/48/19948/1</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/+/19948">change 19948</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/+/19948"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 20 </div>
<div style="display:none"> Gerrit-Change-Id: Iea7f34970297f2fb50285d73462d0174ba7e9587 </div>
<div style="display:none"> Gerrit-Change-Number: 19948 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: 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: newchange </div>