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: 19.4.0-rc1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=939a7c0dc34e75d763b8a687d7ff427a9880d2ba;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 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)