Lines 5-11
Link Here
|
5 |
#include <openssl/hmac.h> |
5 |
#include <openssl/hmac.h> |
6 |
#include <openssl/sha.h> |
6 |
#include <openssl/sha.h> |
7 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
7 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
8 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) |
8 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) |
9 |
namespace { |
9 |
namespace { |
10 |
// Copies of OpenSSL after 1.1.0 define new EVP digest routines. We must |
10 |
// Copies of OpenSSL after 1.1.0 define new EVP digest routines. We must |
11 |
// polyfill used definitions to interact with older OpenSSL versions. |
11 |
// polyfill used definitions to interact with older OpenSSL versions. |