k2v-client: use ring tls provider

This commit is contained in:
Alex Auvolat
2026-09-07 19:16:10 +02:00
parent 3dbcad9dda
commit ae29f7f73f
3 changed files with 3 additions and 1 deletions
Generated
+1
View File
@@ -2837,6 +2837,7 @@ dependencies = [
"hyper-util",
"log",
"percent-encoding",
"rustls 0.23.39",
"serde",
"serde_json",
"sha2 0.10.9",
+1
View File
@@ -24,6 +24,7 @@ percent-encoding.workspace = true
hyper = { workspace = true, default-features = false, features = ["http1", "http2"] }
hyper-util.workspace = true
hyper-rustls.workspace = true
rustls.workspace = true
serde = { workspace = true, default-features = false, features = ["derive", "std"] }
serde_json.workspace = true
thiserror.workspace = true
+1 -1
View File
@@ -72,7 +72,7 @@ impl K2vClient {
/// Create a new K2V client.
pub fn new(config: K2vClientConfig) -> Result<Self, Error> {
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()?
.with_provider_and_native_roots(rustls::crypto::ring::default_provider())?
.https_or_http()
.enable_http1()
.enable_http2()