You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-db/sqlcipher/files/sqlcipher-3.4.1-libressl.patch

12 lines
450 B

--- 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));