Fix build with LibreSSL.

This commit is contained in:
Antoine Jacoutot
2016-12-17 09:54:41 +01:00
committed by Viktor Dukhovni
parent 63f22421c8
commit 586e5f6d9d

View File

@@ -75,7 +75,7 @@
/* Now it's safe to include OpenSSL headers */
#include <openssl/evp.h>
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#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