Skip to content

Commit 497b2d2

Browse files
chore: install the fips provider per rustls docs
1 parent 6ffab5f commit 497b2d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bottlecap/src/bin/bottlecap/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ fn log_fips_status() {
9292
/// In non-FIPS mode, this is a no-op.
9393
#[cfg(feature = "fips")]
9494
fn prepare_client_provider() -> Result<()> {
95-
rustls::crypto::CryptoProvider::install_default(rustls::crypto::aws_lc_rs::default_provider())
95+
rustls::crypto::default_fips_provider()
96+
.install_default()
9697
.map_err(|e| {
9798
Error::new(
9899
std::io::ErrorKind::InvalidData,
99-
format!("Failed to set up crypto provider: {e:?}"),
100+
format!("Failed to set up fips provider: {e:?}"),
100101
)
101102
})
102103
}

0 commit comments

Comments
 (0)