Skip to content

Commit 364acd5

Browse files
authored
Bump pem to 3 (#1272)
Bump pem to 3 Replaces #1267 and uses previously backed out change from #1181 Signed-off-by: clux <[email protected]>
1 parent 3d01f4a commit 364acd5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kube-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ http-body = { version = "0.4.2", optional = true }
4848
either = { version = "1.6.1", optional = true }
4949
thiserror = "1.0.29"
5050
futures = { version = "0.3.17", optional = true }
51-
pem = { version = "1.1.0", optional = true }
51+
pem = { version = "3.0.1", optional = true }
5252
openssl = { version = "0.10.36", optional = true }
5353
rustls = { version = "0.21.0", features = ["dangerous_configuration"], optional = true }
5454
rustls-pemfile = { version = "1.0.0", optional = true }

kube-client/src/config/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ fn certs(data: &[u8]) -> Result<Vec<Vec<u8>>, pem::PemError> {
365365
Ok(pem::parse_many(data)?
366366
.into_iter()
367367
.filter_map(|p| {
368-
if p.tag == "CERTIFICATE" {
369-
Some(p.contents)
368+
if p.tag() == "CERTIFICATE" {
369+
Some(p.into_contents())
370370
} else {
371371
None
372372
}

0 commit comments

Comments
 (0)