From 8b5f1609faffcf1166ca54c08df4ca9216c51993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 14 Mar 2024 15:41:30 +0100 Subject: Use public_key:cacerts_get/0 when possible Also "fix" many TLS test failures due to yet more changes in the default options for TLS. Also small changes to make Dialyzer happy. --- src/gun_http2.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gun_http2.erl') diff --git a/src/gun_http2.erl b/src/gun_http2.erl index 71e01d4..bfd2d31 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -585,7 +585,7 @@ headers_frame_connect(State=#http2_state{transport=Transport, opts=Opts, tunnel_ ProtoOpts = case Destination of #{transport := tls} -> Protocols = maps:get(protocols, Destination, [http2, http]), - TLSOpts = gun:ensure_alpn_sni(Protocols, maps:get(tls_opts, Destination, []), DestHost), + TLSOpts = gun:ensure_tls_opts(Protocols, maps:get(tls_opts, Destination, []), DestHost), HandshakeEvent = #{ stream_ref => RealStreamRef, reply_to => ReplyTo, -- cgit v1.2.3