Fix build with LibreSSL.
This commit is contained in:

committed by
Viktor Dukhovni

parent
63f22421c8
commit
586e5f6d9d
@@ -75,7 +75,7 @@
|
|||||||
/* Now it's safe to include OpenSSL headers */
|
/* Now it's safe to include OpenSSL headers */
|
||||||
#include <openssl/evp.h>
|
#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_new EVP_MD_CTX_create
|
||||||
#define EVP_MD_CTX_free EVP_MD_CTX_destroy
|
#define EVP_MD_CTX_free EVP_MD_CTX_destroy
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user