void-packages/srcpkgs/sqlcipher/patches/fix-libressl.patch
maxice8 16e218cddc sqlcipher: update to 3.4.1.
Closes:  [via git-merge-pr]
2017-10-15 16:19:09 -07:00

11 lines
421 B
Diff

--- src/crypto_openssl.c
+++ src/crypto_openssl.c
@@ -46,7 +46,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));