]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't include openssl/engine.h if it's not going to be used 14431/head
authorSander Hoentjen <shoentjen@antagonist.nl>
Fri, 5 Jul 2024 14:38:12 +0000 (16:38 +0200)
committerSander Hoentjen <shoentjen@antagonist.nl>
Fri, 5 Jul 2024 14:39:54 +0000 (16:39 +0200)
pdns/libssl.cc

index 3f1a86b0ceb40bc9fa3ab0b5deb977f47dc710bc..b3629d15c216a78f176a3240ceb93bc6ea124887 100644 (file)
 #include <pthread.h>
 
 #include <openssl/conf.h>
+#if OPENSSL_VERSION_MAJOR < 3 || !defined(HAVE_TLS_PROVIDERS)
 #ifndef OPENSSL_NO_ENGINE
 #include <openssl/engine.h>
 #endif
+#endif
 #include <openssl/err.h>
 #ifndef DISABLE_OCSP_STAPLING
 #include <openssl/ocsp.h>