We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f945944 commit a6bc3b3Copy full SHA for a6bc3b3
1 file changed
ddcommon/src/connector/mod.rs
@@ -96,11 +96,12 @@ mod https {
96
/// sometimes this is done as a side-effect of other operations, but we need to ensure it
97
/// happens here. On non-unix platforms, ddcommon uses `ring` instead, which handles this
98
/// at rustls initialization. TODO: Move to the more ergonomic LazyLock when MSRV is 1.80
99
+ /// In fips mode we expect someone to have done this already.
100
fn ensure_crypto_provider_initialized() {
101
use std::sync::OnceLock;
102
static INIT_CRYPTO_PROVIDER: OnceLock<()> = OnceLock::new();
103
INIT_CRYPTO_PROVIDER.get_or_init(|| {
- #[cfg(unix)]
104
+ #[cfg(all(unix, not(feature = "fips")))]
105
#[allow(clippy::expect_used)]
106
rustls::crypto::aws_lc_rs::default_provider()
107
.install_default()
0 commit comments