Line 0
Link Here
|
|
|
1 |
# Fix building with libressl #229 |
2 |
# |
3 |
--- src/crypto_openssl.c.orig 2016-12-28 17:39:09 UTC |
4 |
+++ src/crypto_openssl.c |
5 |
@@ -46,7 +46,7 @@ static unsigned int openssl_external_ini |
6 |
static unsigned int openssl_init_count = 0; |
7 |
static sqlite3_mutex* openssl_rand_mutex = NULL; |
8 |
|
9 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
10 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
11 |
static HMAC_CTX *HMAC_CTX_new(void) |
12 |
{ |
13 |
HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx)); |