summaryrefslogtreecommitdiff
path: root/dev-db/sqlcipher/files/sqlcipher-3.4.1-libressl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/sqlcipher/files/sqlcipher-3.4.1-libressl.patch')
-rw-r--r--dev-db/sqlcipher/files/sqlcipher-3.4.1-libressl.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-db/sqlcipher/files/sqlcipher-3.4.1-libressl.patch b/dev-db/sqlcipher/files/sqlcipher-3.4.1-libressl.patch
new file mode 100644
index 000000000000..f12f1284514d
--- /dev/null
+++ b/dev-db/sqlcipher/files/sqlcipher-3.4.1-libressl.patch
@@ -0,0 +1,11 @@
+--- a/src/crypto_openssl.c 2017-07-06 08:11:21.560000000 +0300
++++ b/src/crypto_openssl.c 2017-07-06 08:11:32.180000000 +0300
+@@ -46,7 +46,7 @@
+ 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));