Skip to content

Commit

Permalink
update rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianUekermann committed May 10, 2024
1 parent f3dcfd1 commit e9b9aa1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["acme", "rustls", "tls", "letsencrypt"]
categories = ["asynchronous", "cryptography", "network-programming"]

[dependencies]
futures-rustls = { version = "0.25", default-features = false }
futures-rustls = { version = "0.26", default-features = false }
futures = "0.3.21"
rcgen = { version = "0.12", default-features = false, features = ["pem"] }
serde_json = "1.0.81"
Expand All @@ -30,7 +30,7 @@ async-io = "2.3.0"
tokio = { version= "1.20.1", optional= true }
tokio-util = { version="0.7.3", features = ["compat"], optional=true }
axum-server = { version = "0.6", features = ["tls-rustls"], optional=true }
async-web-client = { version = "0.5.1", default-features = false }
async-web-client = { version = "0.6.2", default-features = false }
http = "1"
blocking = "1.4.1"

Expand All @@ -43,7 +43,7 @@ tokio-stream = { version="0.1.14", features = ["net"] }
tokio-util = { version="0.7.10", features = ["compat"] }
warp = "0.3.4"
smol = "2.0.0"
tokio-rustls = { version = "0.25", default-features = false }
tokio-rustls = { version = "0.26", default-features = false }
smol-macros = "0.1.0"
macro_rules_attribute = "0.2.0"

Expand All @@ -52,11 +52,12 @@ all-features = true
rustdoc-args = ["--cfg", "doc_auto_cfg"]

[features]
default = ["ring"]
default = ["aws-lc-rs", "tls12"]
ring = ["dep:ring", "async-web-client/ring", "rcgen/ring"]
aws-lc-rs = ["dep:aws-lc-rs", "async-web-client/aws-lc-rs", "rcgen/aws_lc_rs"]
axum = ["dep:axum-server", "tokio"]
tokio = ["dep:tokio", "dep:tokio-util"]
tls12 = ["async-web-client/tls12"]

[[example]]
name="low_level_axum"
Expand Down
4 changes: 2 additions & 2 deletions src/https_helper.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use async_web_client::RequestSend;
use async_web_client::prelude::*;
use futures::AsyncReadExt;
use futures_rustls::pki_types::InvalidDnsNameError;
use futures_rustls::rustls::ClientConfig;
Expand All @@ -21,7 +21,7 @@ pub(crate) async fn https(
request.body("".to_string())
};
let request = request?;
let mut response = RequestSend::new_with_client_config(&request, client_config.clone()).await?;
let mut response = request.send_with_client_config(client_config.clone()).await?;
let mut body = String::new();
response.body_mut().read_to_string(&mut body).await?;
let response = response.map(|_| body);
Expand Down

0 comments on commit e9b9aa1

Please sign in to comment.