comparison ssl_proxy_upgrade.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 cdcd75657e52
children
comparison
equal deleted inserted replaced
1969:3ba1668cea87 1970:6d3a8f4eb9b2
168 my (%opts) = @_; 168 my (%opts) = @_;
169 169
170 my $s = IO::Socket::SSL->new( 170 my $s = IO::Socket::SSL->new(
171 Proto => 'tcp', 171 Proto => 'tcp',
172 PeerAddr => '127.0.0.1:' . port(8080), 172 PeerAddr => '127.0.0.1:' . port(8080),
173 SSL_version => 'SSLv23',
173 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), 174 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),
174 ) 175 )
175 or die "Can't connect to nginx: $!\n"; 176 or die "Can't connect to nginx: $!\n";
176 177
177 # send request, $h->to_string 178 # send request, $h->to_string