From 971eb0e5e836cdeaaefc25b2bab4c6a6a9f8e213 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 16 Jan 2024 13:51:54 -0700 Subject: chore: bump rustls-tokio-stream and rustls (#21955) --- ext/net/ops_tls.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/net') 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, ); -- cgit v1.2.3