diff --git a/Cargo.toml b/Cargo.toml index e012a0b..be7b70b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ base64 = "0.12" chrono = { version = "0.4", features = ["serde"] } http = "0.2" hyper = { version = "0.14", features = ["client", "server", "tcp", "http2"] } -hyper-rustls = { git = "https://github.com/ctz/hyper-rustls" } +hyper-rustls = "0.22" log = "0.4" rustls = "0.19" seahash = "4" diff --git a/src/authenticator.rs b/src/authenticator.rs index 38e1dd5..d0e2a29 100644 --- a/src/authenticator.rs +++ b/src/authenticator.rs @@ -466,7 +466,7 @@ impl HyperClientBuilder for DefaultHyperClient { fn build_hyper_client(self) -> hyper::Client { hyper::Client::builder() .pool_max_idle_per_host(0) - .build::<_, hyper::Body>(hyper_rustls::HttpsConnector::new()) + .build::<_, hyper::Body>(hyper_rustls::HttpsConnector::with_native_roots()) } } diff --git a/src/service_account.rs b/src/service_account.rs index 4f8280c..99198f9 100644 --- a/src/service_account.rs +++ b/src/service_account.rs @@ -225,7 +225,7 @@ mod tests { .await .unwrap(); let acc = ServiceAccountFlow::new(ServiceAccountFlowOpts { key, subject: None }).unwrap(); - let https = HttpsConnector::new(); + let https = HttpsConnector::with_native_roots(); let client = hyper::Client::builder() .pool_max_idle_per_host(0) .build::<_, hyper::Body>(https); diff --git a/tests/tests.rs b/tests/tests.rs index 5d39b11..b87ade0 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -216,7 +216,7 @@ async fn create_installed_flow_auth( } let mut builder = InstalledFlowAuthenticator::builder(app_secret, method).flow_delegate( - Box::new(FD(hyper::Client::builder().build(HttpsConnector::new()))), + Box::new(FD(hyper::Client::builder().build(HttpsConnector::with_native_roots()))), ); builder = if let Some(filename) = filename {