From 5ac5c2b0ab7be0e5fd82b8596b93db8a1dfdcde7 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 65ebcc5011..a11182bc0f 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 0f85a14775..0700cbd6e3 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) -- 2.47.2