]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
openssl: Supress deprecation warnings from OpenSSL 3.0
authorSean Bright <sean.bright@gmail.com>
Fri, 25 Mar 2022 13:19:35 +0000 (09:19 -0400)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 28 Mar 2022 17:23:09 +0000 (12:23 -0500)
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
res/res_rtp_asterisk.c

index 65ebcc5011121f11328444748e9d9c128f788411..a11182bc0fd0ed893518253e62af7cf4bc58cb59 100644 (file)
@@ -35,6 +35,8 @@
 
 #include <dirent.h>                 /* for closedir, opendir, readdir, DIR */
 
+#define OPENSSL_SUPPRESS_DEPRECATED 1
+
 #include <openssl/aes.h>            /* for AES_decrypt, AES_encrypt, AES_set... */
 #include <openssl/err.h>            /* for ERR_print_errors_fp */
 #include <openssl/ssl.h>            /* for NID_sha1, RSA */
index 0f85a147759daae32e60c5d27a6926ded9bb46b8..0700cbd6e3f9bb5d958e581bb199d1a1928cf7d7 100644 (file)
@@ -47,6 +47,7 @@
 #include <math.h>
 
 #ifdef HAVE_OPENSSL
+#define OPENSSL_SUPPRESS_DEPRECATED 1
 #include <openssl/opensslconf.h>
 #include <openssl/opensslv.h>
 #if !defined(OPENSSL_NO_SRTP) && (OPENSSL_VERSION_NUMBER >= 0x10001000L)