From d9c31a0df02810cd30f6cf58a153cfaf310b5ed7 Mon Sep 17 00:00:00 2001 From: clux Date: Mon, 3 Apr 2023 18:26:24 +0100 Subject: [PATCH] Bump pem,rustls,hyper-rustls - for #1181 Leftover dependabot PRs that needed to go together. Signed-off-by: clux --- kube-client/Cargo.toml | 6 +++--- kube-client/src/config/mod.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kube-client/Cargo.toml b/kube-client/Cargo.toml index 567050be3..17c9b429f 100644 --- a/kube-client/Cargo.toml +++ b/kube-client/Cargo.toml @@ -47,9 +47,9 @@ http-body = { version = "0.4.2", optional = true } either = { version = "1.6.1", optional = true } thiserror = "1.0.29" futures = { version = "0.3.17", optional = true } -pem = { version = "1.1.0", optional = true } +pem = { version = "2.0.0", optional = true } openssl = { version = "0.10.36", optional = true } -rustls = { version = "0.20.3", features = ["dangerous_configuration"], optional = true } +rustls = { version = "0.21.0", features = ["dangerous_configuration"], optional = true } rustls-pemfile = { version = "1.0.0", optional = true } bytes = { version = "1.1.0", optional = true } tokio = { version = "1.14.0", features = ["time", "signal", "sync"], optional = true } @@ -57,7 +57,7 @@ kube-core = { path = "../kube-core", version = "=0.80.0" } jsonpath_lib = { version = "0.3.0", optional = true } tokio-util = { version = "0.7.0", optional = true, features = ["io", "codec"] } hyper = { version = "0.14.13", optional = true, features = ["client", "http1", "stream", "tcp"] } -hyper-rustls = { version = "0.23.2", optional = true } +hyper-rustls = { version = "0.24.0", optional = true } tokio-tungstenite = { version = "0.18.0", optional = true } tower = { version = "0.4.6", optional = true, features = ["buffer", "filter", "util"] } tower-http = { version = "0.4.0", optional = true, features = ["auth", "map-response-body", "trace"] } diff --git a/kube-client/src/config/mod.rs b/kube-client/src/config/mod.rs index c95488f43..f838580a1 100644 --- a/kube-client/src/config/mod.rs +++ b/kube-client/src/config/mod.rs @@ -377,8 +377,8 @@ fn certs(data: &[u8]) -> Result>, pem::PemError> { Ok(pem::parse_many(data)? .into_iter() .filter_map(|p| { - if p.tag == "CERTIFICATE" { - Some(p.contents) + if p.tag() == "CERTIFICATE" { + Some(p.into_contents()) } else { None }