Skip to content

Commit 15fb88f

Browse files
authored
Merge pull request sqlcipher#229 from Pinkbyte/libressl-build-fix2
Fix building with libressl
2 parents 15bfa66 + ce489eb commit 15fb88f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/crypto_openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static unsigned int openssl_external_init = 0;
4747
static unsigned int openssl_init_count = 0;
4848
static sqlite3_mutex* openssl_rand_mutex = NULL;
4949

50-
#if OPENSSL_VERSION_NUMBER < 0x10100000L
50+
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
5151
static HMAC_CTX *HMAC_CTX_new(void)
5252
{
5353
HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx));

0 commit comments

Comments
 (0)