Skip to content

Commit

Permalink
Bump pem to 3
Browse files Browse the repository at this point in the history
Replaces #1267 and uses previously backed out change from #1181

Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Aug 6, 2023
1 parent 3d01f4a commit 287420e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kube-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ 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 = "3.0.1", optional = true }
openssl = { version = "0.10.36", optional = true }
rustls = { version = "0.21.0", features = ["dangerous_configuration"], optional = true }
rustls-pemfile = { version = "1.0.0", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions kube-client/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ fn certs(data: &[u8]) -> Result<Vec<Vec<u8>>, 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
}
Expand Down

0 comments on commit 287420e

Please sign in to comment.