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: 16.26.0-rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4279a8f978fcb2ebf438e25f7ec856b6c8a65f64;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 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 31b9dc8041..94c63f1eb5 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)