Skip to content

Commit

Permalink
feat: update deps to use rustls 0.21
Browse files Browse the repository at this point in the history
hyper is still blocked on seanmonstar/reqwest#1791
  • Loading branch information
dignifiedquire committed May 4, 2023
1 parent a04e8f1 commit 8c400a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["acme", "rustls", "tls"]
categories = ["asynchronous", "cryptography", "network-programming"]

[dependencies]
futures-rustls = "0.22.2"
futures-rustls = "0.24"
futures = "0.3.21"
rcgen = "0.9.2"
async-h1 = "2.3.3"
Expand All @@ -21,17 +21,17 @@ serde = "1.0.137"
ring = { version = "0.16.20", features = ["std"] }
base64 = "0.13.0"
log = "0.4.17"
webpki-roots = "0.21.1"
pem = "1.0.2"
webpki-roots = "0.23"
pem = "2.0.1"
thiserror = "1.0.31"
x509-parser = "0.13.2"
x509-parser = "0.15"
chrono = "0.4.19"
url = "2.2.2"
async-trait = "0.1.53"
smol = "1.2.5"
pin-project = "1.0.10"
async-io = "1.6.0"
rustls = "0.20.6"
rustls = "0.21"
tokio = { version= "1.20.1", optional= true }
tokio-util = { version="0.7.3", features = ["compat"], optional=true }
axum-server = { version = "0.4.1", features = ["tls-rustls"], optional=true }
Expand Down
4 changes: 2 additions & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ impl<EC: 'static + Debug, EA: 'static + Debug> AcmeState<EC, EA> {
if pems.len() < 2 {
return Err(CertParseError::TooFewPem(pems.len()));
}
let pk = match any_ecdsa_type(&PrivateKey(pems.remove(0).contents)) {
let pk = match any_ecdsa_type(&PrivateKey(pems.remove(0).into_contents())) {
Ok(pk) => pk,
Err(_) => return Err(CertParseError::InvalidPrivateKey),
};
let cert_chain: Vec<RustlsCertificate> = pems
.into_iter()
.map(|p| RustlsCertificate(p.contents))
.map(|p| RustlsCertificate(p.into_contents()))
.collect();
let validity = match parse_x509_certificate(cert_chain[0].0.as_slice()) {
Ok((_, cert)) => {
Expand Down

0 comments on commit 8c400a7

Please sign in to comment.