From e8dda21218a0bcb5363490a35e2cfed798421f2c Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 4 Jul 2017 08:28:54 +0300 Subject: support for openssl-1.1 --- crypto/crypto.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto') diff --git a/crypto/crypto.h b/crypto/crypto.h index 3fbc3282..9e2e8401 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -7,7 +7,12 @@ #include #include #include +#include +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined (LIBRESSL_VERSION_NUMBER) +#define EVP_MD_CTX_new EVP_MD_CTX_create +#define EVP_MD_CTX_free EVP_MD_CTX_destroy +#endif #else #ifdef CRYPTO_TOMCRYPT -- cgit v1.2.3