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 <dwmw2@infradead.org>
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)'])
;;
*/
#include <string.h>
+#define OPENSSL_SUPPRESS_DEPRECATED
+
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/evp.h>