From 07455459d0a640194e3922880116014145f8d499 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 4 May 2021 16:31:46 +0100 Subject: [PATCH] Add OPENSSL_SUPPRESS_DEPRECATED We will eventually update to the OpenSSL 3.0.0 APIs but for now there is no overriding need to, so shut the warnings up the easy way. Signed-off-by: David Woodhouse --- configure.ac | 1 + tests/bad_dtls_test.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 3482c670..dbc71151 100644 --- a/configure.ac +++ b/configure.ac @@ -567,6 +567,7 @@ case "$ssl_library" in dtls=yes AC_DEFINE(OPENCONNECT_OPENSSL, 1, [Using OpenSSL]) + AC_DEFINE(OPENSSL_SUPPRESS_DEPRECATED, 1, [We need to update to OpenSSL 3.0.0 API]) AC_SUBST(SSL_LIBS, ['$(OPENSSL_LIBS)']) AC_SUBST(SSL_CFLAGS, ['$(OPENSSL_CFLAGS)']) ;; diff --git a/tests/bad_dtls_test.c b/tests/bad_dtls_test.c index 85f023a7..6d5ab4a8 100644 --- a/tests/bad_dtls_test.c +++ b/tests/bad_dtls_test.c @@ -37,6 +37,8 @@ */ #include +#define OPENSSL_SUPPRESS_DEPRECATED + #include #include #include -- 2.50.1