aboutsummaryrefslogtreecommitdiff
path: root/cc/core
diff options
context:
space:
mode:
authorambrosin <ambrosin@google.com>2023-04-20 06:13:22 -0700
committerCopybara-Service <copybara-worker@google.com>2023-04-20 06:14:39 -0700
commit113db291f03cc90700f8278ff24f9cfb1f0db05b (patch)
tree4a0f7a1a706682a1da46a132f06863bd7ad9c1bf /cc/core
parent4239f1069b4bff49e175235ff1e12f13d145e4e5 (diff)
downloadtink-113db291f03cc90700f8278ff24f9cfb1f0db05b.tar.gz
Replace direct use of FIPS_mode with an internal util function
The function returns `false` if OpenSSL is used. PiperOrigin-RevId: 525726396
Diffstat (limited to 'cc/core')
-rw-r--r--cc/core/keyset_handle_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/core/keyset_handle_test.cc b/cc/core/keyset_handle_test.cc
index 3098ef87f..92ddb5958 100644
--- a/cc/core/keyset_handle_test.cc
+++ b/cc/core/keyset_handle_test.cc
@@ -775,7 +775,7 @@ TEST_F(KeysetHandleTest, GetPrimitive) {
}
TEST_F(KeysetHandleTest, GetPrimitiveWithConfigFips1402Succeeds) {
- if (!FIPS_mode()) {
+ if (!internal::IsFipsEnabledInSsl()) {
GTEST_SKIP() << "Only test in FIPS mode";
}
@@ -798,7 +798,7 @@ TEST_F(KeysetHandleTest, GetPrimitiveWithConfigFips1402Succeeds) {
}
TEST_F(KeysetHandleTest, GetPrimitiveWithConfigFips1402FailsWithNonFipsHandle) {
- if (!FIPS_mode()) {
+ if (!internal::IsFipsEnabledInSsl()) {
GTEST_SKIP() << "Only test in FIPS mode";
}