summaryrefslogtreecommitdiff
path: root/ext/net
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-25 04:47:45 +0100
committerGitHub <noreply@github.com>2024-01-25 04:47:45 +0100
commitac2da1e9ff8ec7dbe3bfea07a493d5c8e705c1b6 (patch)
tree406cb187614e764d17602f6d65e96848ddd35724 /ext/net
parent9e575a286269c38c1af0a918a2a4ea4639a3004b (diff)
Revert "chore: bump rustls-tokio-stream and rustls (#21955)" (#22097)
This reverts commit 971eb0e5e836cdeaaefc25b2bab4c6a6a9f8e213. To unblock v1.40 release.
Diffstat (limited to 'ext/net')
-rw-r--r--ext/net/ops_tls.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs
index 255c6ddbd..d16bface4 100644
--- a/ext/net/ops_tls.rs
+++ b/ext/net/ops_tls.rs
@@ -27,7 +27,6 @@ use deno_tls::create_client_config;
use deno_tls::load_certs;
use deno_tls::load_private_keys;
use deno_tls::rustls::Certificate;
-use deno_tls::rustls::ClientConnection;
use deno_tls::rustls::PrivateKey;
use deno_tls::rustls::ServerConfig;
use deno_tls::rustls::ServerName;
@@ -231,7 +230,8 @@ where
let tls_config = Arc::new(tls_config);
let tls_stream = TlsStream::new_client_side(
tcp_stream,
- ClientConnection::new(tls_config, hostname_dns).unwrap(),
+ tls_config,
+ hostname_dns,
TLS_BUFFER_SIZE,
);
@@ -327,7 +327,8 @@ where
let tls_stream = TlsStream::new_client_side(
tcp_stream,
- ClientConnection::new(tls_config, hostname_dns).unwrap(),
+ tls_config,
+ hostname_dns,
TLS_BUFFER_SIZE,
);