diff --git a/src/openssl/app.c b/src/openssl/app.c index 56258e4b7..dde662562 100644 --- a/src/openssl/app.c +++ b/src/openssl/app.c @@ -24,9 +24,10 @@ #include #include #include -#if !defined(OPENSSL_NO_ENGINE) && defined(XMLSEC_OPENSSL3_ENGINES) + +#if !defined(OPENSSL_NO_ENGINE) && (!defined(XMLSEC_OPENSSL_API_300) || defined(XMLSEC_OPENSSL3_ENGINES)) #include -#endif /* !defined(OPENSSL_NO_ENGINE) && defined(XMLSEC_OPENSSL3_ENGINES) */ +#endif /* !defined(OPENSSL_NO_ENGINE) && (!defined(XMLSEC_OPENSSL_API_300) || defined(XMLSEC_OPENSSL3_ENGINES)) */ #include #include