<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18263">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">openssl: Supress deprecation warnings from OpenSSL 3.0<br><br>There is work going on to update our OpenSSL usage to avoid the<br>deprecated functions but in the meantime make it possible to compile<br>in devmode.<br><br>Change-Id: Ib082eb8b3751f0185d8aa8fe127da664c93f0726<br>---<br>M res/res_crypto.c<br>M res/res_rtp_asterisk.c<br>2 files changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/63/18263/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_crypto.c b/res/res_crypto.c</span><br><span>index 65ebcc5..a11182b 100644</span><br><span>--- a/res/res_crypto.c</span><br><span>+++ b/res/res_crypto.c</span><br><span>@@ -35,6 +35,8 @@</span><br><span> </span><br><span> #include <dirent.h>                 /* for closedir, opendir, readdir, DIR */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#define OPENSSL_SUPPRESS_DEPRECATED 1</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #include <openssl/aes.h>            /* for AES_decrypt, AES_encrypt, AES_set... */</span><br><span> #include <openssl/err.h>            /* for ERR_print_errors_fp */</span><br><span> #include <openssl/ssl.h>            /* for NID_sha1, RSA */</span><br><span>diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c</span><br><span>index 0f85a14..0700cbd 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -47,6 +47,7 @@</span><br><span> #include <math.h></span><br><span> </span><br><span> #ifdef HAVE_OPENSSL</span><br><span style="color: hsl(120, 100%, 40%);">+#define OPENSSL_SUPPRESS_DEPRECATED 1</span><br><span> #include <openssl/opensslconf.h></span><br><span> #include <openssl/opensslv.h></span><br><span> #if !defined(OPENSSL_NO_SRTP) && (OPENSSL_VERSION_NUMBER >= 0x10001000L)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18263">change 18263</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/+/18263"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: Ib082eb8b3751f0185d8aa8fe127da664c93f0726 </div>
<div style="display:none"> Gerrit-Change-Number: 18263 </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-MessageType: newchange </div>