From ce489ebb4788207f27b1641f8d2bfe6b65462260 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Thu, 6 Jul 2017 08:25:13 +0300 Subject: [PATCH] Fix building with libressl --- src/crypto_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto_openssl.c b/src/crypto_openssl.c index 910e113..83681c9 100644 --- a/src/crypto_openssl.c +++ b/src/crypto_openssl.c @@ -47,7 +47,7 @@ static unsigned int openssl_external_init = 0; static unsigned int openssl_init_count = 0; static sqlite3_mutex* openssl_rand_mutex = NULL; -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) static HMAC_CTX *HMAC_CTX_new(void) { HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx));