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