Skip to content

Commit

Permalink
detect fips on openssl3
Browse files Browse the repository at this point in the history
  • Loading branch information
lrstewart committed Jan 16, 2025
1 parent 31bbae5 commit 9271ceb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/s2n_fips.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ bool s2n_libcrypto_is_fips(void)
if (FIPS_mode() == 1) {
return true;
}
#elif S2N_OPENSSL_VERSION_AT_LEAST(3, 0, 0)
return EVP_default_properties_is_fips_enabled(NULL);
#endif
return false;
}
Expand Down

0 comments on commit 9271ceb

Please sign in to comment.