Fix building with LibreSSL again

This commit is contained in:
Jon Siwek 2019-01-24 17:53:03 -06:00
parent 7465bceb7e
commit 1b2b1b2850
3 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,8 @@
2.6-106 | 2019-01-24 17:53:03 -0600
* Fix building with LibreSSL again (Jon Siwek, Corelight)
2.6-105 | 2019-01-24 15:22:31 -0800 2.6-105 | 2019-01-24 15:22:31 -0800
* GH-167: improve error message for unclosed function at EOF (Jon Siwek, Corelight) * GH-167: improve error message for unclosed function at EOF (Jon Siwek, Corelight)

View file

@ -1 +1 @@
2.6-105 2.6-106

View file

@ -11,7 +11,7 @@
#include <openssl/sha.h> #include <openssl/sha.h>
#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