diff options
author | kste <kste@google.com> | 2020-08-12 01:12:32 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-08-12 01:13:20 -0700 |
commit | a7f4024704dec95cf3a978d6772d4d5bcbd6d764 (patch) | |
tree | bcbf8b09741d869014c1c56b6cb338da7da13d72 /cc/config | |
parent | 2eb8d73214751c12100efeeb78aa32847fda8ef4 (diff) | |
download | tink-a7f4024704dec95cf3a978d6772d4d5bcbd6d764.tar.gz |
Return error if FIPS status is in undefined state.
PiperOrigin-RevId: 326187569
Diffstat (limited to 'cc/config')
-rw-r--r-- | cc/config/tink_fips.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cc/config/tink_fips.cc b/cc/config/tink_fips.cc index 402f5272b..ec505fd1e 100644 --- a/cc/config/tink_fips.cc +++ b/cc/config/tink_fips.cc @@ -28,7 +28,7 @@ crypto::tink::util::Status ChecksFipsCompatibility( case FipsCompatibility::kNotFips: if (kUseOnlyFips) { return util::Status(util::error::INTERNAL, - "Primitive not available in FIPS only mode"); + "Primitive not available in FIPS only mode."); } else { return util::OkStatus(); } @@ -43,6 +43,9 @@ crypto::tink::util::Status ChecksFipsCompatibility( } else { return util::OkStatus(); } + default: + util::Status(util::error::INTERNAL, + "Could not determine FIPS status."); } } |