void-packages/srcpkgs/sqlcipher/patches/fix-libressl-2.7.patch
2018-04-26 20:43:00 +02:00

12 lines
575 B
Diff

--- src/crypto_openssl.c.orig 2018-04-23 19:52:51.654950856 +0200
+++ src/crypto_openssl.c 2018-04-23 19:54:16.786079484 +0200
@@ -47,7 +47,8 @@ static unsigned int openssl_external_ini
static unsigned int openssl_init_count = 0;
static sqlite3_mutex* openssl_rand_mutex = NULL;
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
static HMAC_CTX *HMAC_CTX_new(void)
{
HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx));