Skip to content

Commit 88f1232

Browse files
authored
rustls: ring is no longer maintained, use aws-lc-rs (#183)
1 parent 2aefbdf commit 88f1232

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

Cargo.toml

+2-10
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ multipart = { version = "0.18.0", default-features = false, features = [
3030
], optional = true }
3131
native-tls = { version = "0.2.10", optional = true }
3232
rustls-native-certs = { version = "0.8.1", optional = true }
33-
rustls = { version = "0.23.22", default-features = false, features = [
34-
"ring",
35-
"std",
36-
"tls12",
37-
], optional = true }
33+
rustls = { version = "0.23.22", optional = true }
3834
serde = { version = "1.0.143", optional = true }
3935
serde_json = { version = "1.0.83", optional = true }
4036
serde_urlencoded = { version = "0.7.1", optional = true }
@@ -54,11 +50,7 @@ lazy_static = "1.4.0"
5450
multipart = { version = "0.18.0", default-features = false, features = [
5551
"server",
5652
] }
57-
rustls = { version = "0.23.22", default-features = false, features = [
58-
"ring",
59-
"std",
60-
"tls12",
61-
] }
53+
rustls = "0.23.22"
6254
tokio = { version = "1.20.1", features = ["full"] }
6355
tokio-rustls = "0.26.1"
6456

tests/test_proxy.rs

-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ async fn test_http_url_with_https_proxy() -> Result<(), anyhow::Error> {
5252
#[cfg(any(feature = "tls-native", feature = "__rustls"))]
5353
#[tokio::test(flavor = "multi_thread")]
5454
async fn test_https_url_with_http_proxy() -> Result<(), anyhow::Error> {
55-
rustls::crypto::ring::default_provider().install_default().unwrap();
5655
let remote_port = tools::start_hello_world_server(true).await?;
5756
let remote_url = format!("https://localhost:{remote_port}");
5857

@@ -77,7 +76,6 @@ async fn test_https_url_with_http_proxy() -> Result<(), anyhow::Error> {
7776
#[cfg(any(feature = "tls-native", feature = "__rustls"))]
7877
#[tokio::test(flavor = "multi_thread")]
7978
async fn test_https_url_with_https_proxy() -> Result<(), anyhow::Error> {
80-
rustls::crypto::ring::default_provider().install_default().unwrap();
8179
let remote_port = tools::start_hello_world_server(true).await?;
8280
let remote_url = format!("https://localhost:{remote_port}");
8381

tests/tools/proxy.rs

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ async fn tunnel(upgraded: Upgraded, addr: String) -> std::io::Result<()> {
101101
}
102102

103103
async fn create_proxy(tls: bool, deny: bool) -> anyhow::Result<u16> {
104-
let _ = rustls::crypto::ring::default_provider().install_default();
105104
let addr = SocketAddr::from(([127, 0, 0, 1], 0));
106105
let listener = TcpListener::bind(addr).await?;
107106
let port = listener.local_addr().unwrap().port();

0 commit comments

Comments
 (0)