Only call FIPS_mode when compiled with SQLCIPHER_FIPS

This commit is contained in:
Nick Parker 2015-03-20 10:04:34 -05:00
parent eb94bb8747
commit e44ce2ccd5
1 changed files with 4 additions and 0 deletions

View File

@ -233,7 +233,11 @@ static int sqlcipher_openssl_ctx_free(void **ctx) {
}
static int sqlcipher_openssl_fips_status(void *ctx) {
#ifdef SQLCIPHER_FIPS
return FIPS_mode();
#else
return 0;
#endif
}
int sqlcipher_openssl_setup(sqlcipher_provider *p) {