comparison h2_ssl.t @ 1970:6d3a8f4eb9b2

Tests: relaxed SSL version used in testing. This ensures that tests can be properly run with old OpenSSL versions when using recent versions of IO::Socket::SSL (which defaults to TLS 1.2+ starting with IO::Socket:SSL version 2.082, and therefore not compatible with OpenSSL before 1.0.1).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 06 May 2024 00:03:13 +0300
parents 2a0a6035a1af
children
comparison
equal deleted inserted replaced
1969:3ba1668cea87 1970:6d3a8f4eb9b2
152 alarm(8); 152 alarm(8);
153 $s = IO::Socket::SSL->new( 153 $s = IO::Socket::SSL->new(
154 Proto => 'tcp', 154 Proto => 'tcp',
155 PeerAddr => '127.0.0.1', 155 PeerAddr => '127.0.0.1',
156 PeerPort => port(8080), 156 PeerPort => port(8080),
157 SSL_version => 'SSLv23',
157 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), 158 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),
158 SSL_alpn_protocols => $alpn, 159 SSL_alpn_protocols => $alpn,
159 SSL_error_trap => sub { die $_[1] } 160 SSL_error_trap => sub { die $_[1] }
160 ); 161 );
161 alarm(0); 162 alarm(0);