From c8d4ad128605c9b754db5415c6a4f1fcc811b93c Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Fri, 25 Mar 2022 09:19:35 -0400 Subject: [PATCH] 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 --- res/res_crypto.c | 2 ++ res/res_rtp_asterisk.c | 1 + 2 files changed, 3 insertions(+) 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)