summaryrefslogtreecommitdiff
path: root/ext/net/ops_tls.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-01-16 13:51:54 -0700
committerGitHub <noreply@github.com>2024-01-16 21:51:54 +0100
commit971eb0e5e836cdeaaefc25b2bab4c6a6a9f8e213 (patch)
treeb5b7abe6e08331d10c9855aff43069f357a85015 /ext/net/ops_tls.rs
parentae0e7df41a15d584703f956f0e2dc91dab4aec38 (diff)
chore: bump rustls-tokio-stream and rustls (#21955)
Diffstat (limited to 'ext/net/ops_tls.rs')
-rw-r--r--ext/net/ops_tls.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs
index d16bface4..255c6ddbd 100644
--- a/ext/net/ops_tls.rs
+++ b/ext/net/ops_tls.rs
@@ -27,6 +27,7 @@ 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;
@@ -230,8 +231,7 @@ where
let tls_config = Arc::new(tls_config);
let tls_stream = TlsStream::new_client_side(
tcp_stream,
- tls_config,
- hostname_dns,
+ ClientConnection::new(tls_config, hostname_dns).unwrap(),
TLS_BUFFER_SIZE,
);
@@ -327,8 +327,7 @@ where
let tls_stream = TlsStream::new_client_side(
tcp_stream,
- tls_config,
- hostname_dns,
+ ClientConnection::new(tls_config, hostname_dns).unwrap(),
TLS_BUFFER_SIZE,
);