Skip to content

Commit

Permalink
Don't include openssl/engine.h if it's not going to be used
Browse files Browse the repository at this point in the history
(cherry picked from commit ed4ee59)
  • Loading branch information
tjikkun authored and rgacogne committed Jul 9, 2024
1 parent 07036a7 commit 0e406e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdns/libssl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
#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>
Expand Down

0 comments on commit 0e406e8

Please sign in to comment.