From 8ea19e70681256f295829bfcdb4c054076c5f719 Mon Sep 17 00:00:00 2001 From: LJ Date: Tue, 18 Mar 2025 18:55:56 -0700 Subject: [PATCH] Switch `ring` to `aws_lc_rs` for crypto provider to be FIPS compliant --- Cargo.toml | 4 ++-- src/ops/sources/google_drive.rs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1958c18d..c562a3d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -81,7 +81,7 @@ globset = "0.4.16" unicase = "2.8.1" google-drive3 = "6.0.0" hyper-util = "0.1.10" -hyper-rustls = { version = "0.27.5", features = ["ring"] } +hyper-rustls = { version = "0.27.5" } yup-oauth2 = "12.1.0" -rustls = { version = "0.23.25", features = ["ring"] } +rustls = { version = "0.23.25" } http-body-util = "0.1.3" diff --git a/src/ops/sources/google_drive.rs b/src/ops/sources/google_drive.rs index 912bf933..2cdf7372 100644 --- a/src/ops/sources/google_drive.rs +++ b/src/ops/sources/google_drive.rs @@ -93,7 +93,9 @@ impl Executor { hyper_util::client::legacy::Client::builder(hyper_util::rt::TokioExecutor::new()) .build( hyper_rustls::HttpsConnectorBuilder::new() - .with_provider_and_native_roots(rustls::crypto::ring::default_provider())? + .with_provider_and_native_roots( + rustls::crypto::aws_lc_rs::default_provider(), + )? .https_only() .enable_http2() .build(),