]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't include openssl/engine.h if it's not going to be used 14452/head
authorSander Hoentjen <shoentjen@antagonist.nl>
Fri, 5 Jul 2024 14:38:12 +0000 (16:38 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 9 Jul 2024 09:36:32 +0000 (11:36 +0200)
(cherry picked from commit ed4ee5924b14e263d79bd682cdd0ce48758b12df)

pdns/libssl.cc

index f9e87aaa86168679b3abad7f34c8a01fbc13cbd6..f4af47ff63b84207c33cf3205eadc075f0f1f70a 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>