Skip to content

Commit c7f9a1c

Browse files
committed
adjust provider version check to work with older versions of openssl
1 parent 5e49545 commit c7f9a1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/crypto_openssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ static const char* sqlcipher_openssl_get_provider_name(void *ctx) {
147147
}
148148

149149
static const char* sqlcipher_openssl_get_provider_version(void *ctx) {
150+
#if (defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10100000L)
151+
return OPENSSL_VERSION_TEXT;
152+
#else
150153
return OpenSSL_version(OPENSSL_VERSION);
154+
#endif
151155
}
152156

153157
/* generate a defined number of random bytes */

0 commit comments

Comments
 (0)