]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Include a more modest openssl header in crypto_openssl_mgt.h
authorNick Mathewson <nickm@torproject.org>
Wed, 28 Oct 2020 14:07:56 +0000 (10:07 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 28 Oct 2020 14:11:42 +0000 (10:11 -0400)
The "engines.h" header has lots of stuff; the "opensslv.h" header
has the version number, which is all we actually need here.

We need to do this because we're about to change this header to
conditionally define OPENSSL_SUPPRESS_DEPRECATED, and it would be
too late to do so if we'd already included "engines.h".

src/lib/crypt_ops/crypto_openssl_mgt.h

index a3dd03aa04e6992c1d85f6044891a314b460ed8e..8dbadfc9d2e6c17f0066162badccd7675589e6c7 100644 (file)
@@ -16,8 +16,7 @@
 #include "orconfig.h"
 
 #ifdef ENABLE_OPENSSL
-#include <openssl/engine.h>
-
+#include <openssl/opensslv.h>
 /*
   Macro to create an arbitrary OpenSSL version number as used by
   OPENSSL_VERSION_NUMBER or SSLeay(), since the actual numbers are a bit hard