Fix build with LibreSSL 2.7
PR: 229606 Approved by: SSL blanket
This commit is contained in:
parent
16bc7d04fc
commit
414ce76eed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474176
@ -5,7 +5,7 @@
|
||||
#include <openssl/hmac.h>
|
||||
#include <openssl/sha.h>
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
|
||||
namespace {
|
||||
// Copies of OpenSSL after 1.1.0 define new EVP digest routines. We must
|
||||
// polyfill used definitions to interact with older OpenSSL versions.
|
||||
|
@ -5,7 +5,7 @@
|
||||
// clang-format on
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
|
||||
// Copies of OpenSSL after 1.1.0 define new functions for interaction with
|
||||
// X509 structure. We must polyfill used definitions to interact with older
|
||||
// OpenSSL versions.
|
||||
|
Loading…
Reference in New Issue
Block a user