From: Sean Bright Date: Fri, 25 Mar 2022 13:19:35 +0000 (-0400) Subject: openssl: Supress deprecation warnings from OpenSSL 3.0 X-Git-Tag: certified-18.9-cert8-rc2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8d4ad128605c9b754db5415c6a4f1fcc811b93c;p=thirdparty%2Fasterisk.git openssl: Supress deprecation warnings from OpenSSL 3.0 There is work going on to update our OpenSSL usage to avoid the deprecated functions but in the meantime make it possible to compile in devmode. Change-Id: Ib082eb8b3751f0185d8aa8fe127da664c93f0726 --- diff --git a/res/res_crypto.c b/res/res_crypto.c index 7d706657a2..dc04deeee2 100644 --- a/res/res_crypto.c +++ b/res/res_crypto.c @@ -35,6 +35,8 @@ #include /* for closedir, opendir, readdir, DIR */ +#define OPENSSL_SUPPRESS_DEPRECATED 1 + #include /* for AES_decrypt, AES_encrypt, AES_set... */ #include /* for ERR_print_errors_fp */ #include /* for NID_sha1, RSA */ diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 3792160a55..1896977c0b 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -47,6 +47,7 @@ #include #ifdef HAVE_OPENSSL +#define OPENSSL_SUPPRESS_DEPRECATED 1 #include #include #if !defined(OPENSSL_NO_SRTP) && (OPENSSL_VERSION_NUMBER >= 0x10001000L)