From: Jouke Witteveen Date: Mon, 15 Jan 2024 17:57:52 +0000 (+0100) Subject: Fix building against OpenSSL 3 X-Git-Tag: hostap_2_11~463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c69ce778f6a7227027a4ac2e8d624c590867704b;p=thirdparty%2Fhostap.git Fix building against OpenSSL 3 Smartcard support uses the ENGINE API of OpenSSL, which has been deprecated as of OpenSSL 3. Rather than migrating the code to the new API or pretending that we do not support OpenSSL 3, accept that we use deprecated functionality. Signed-off-by: Jouke Witteveen --- diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c index 5aff0d161..17283f998 100644 --- a/src/crypto/tls_openssl.c +++ b/src/crypto/tls_openssl.c @@ -19,14 +19,16 @@ #endif #endif +#ifndef OPENSSL_NO_ENGINE +/* OpenSSL 3.0 has moved away from the engine API */ +#define OPENSSL_SUPPRESS_DEPRECATED +#include +#endif /* OPENSSL_NO_ENGINE */ #include #include #include #include #include -#ifndef OPENSSL_NO_ENGINE -#include -#endif /* OPENSSL_NO_ENGINE */ #if OPENSSL_VERSION_NUMBER >= 0x30000000L #include #include