8000 Only call FIPS_mode when compiled with SQLCIPHER_FIPS · githubzhaoliang/sqlcipher@e44ce2c · GitHub
[go: up one dir, main page]

Skip to content

Commit e44ce2c

Browse files
Only call FIPS_mode when compiled with SQLCIPHER_FIPS
1 parent eb94bb8 commit e44ce2c

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
@@ -233,7 +233,11 @@ static int sqlcipher_openssl_ctx_free(void **ctx) {
233233
}
234234

235235
static int sqlcipher_openssl_fips_status(void *ctx) {
236+
#ifdef SQLCIPHER_FIPS
236237
return FIPS_mode();
238+
#else
239+
return 0;
240+
#endif
237241
}
238242

239243
int sqlcipher_openssl_setup(sqlcipher_provider *p) {

0 commit comments

Comments
 (0)
0