Mercurial > hg > nginx-tests
comparison lib/Test/Nginx/HTTP2.pm @ 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 | e306bd77321d |
children | d2d00eea7b3d |
comparison
equal
deleted
inserted
replaced
1969:3ba1668cea87 | 1970:6d3a8f4eb9b2 |
---|---|
546 Proto => 'tcp', | 546 Proto => 'tcp', |
547 PeerAddr => "127.0.0.1:$port", | 547 PeerAddr => "127.0.0.1:$port", |
548 ); | 548 ); |
549 require IO::Socket::SSL if $extra{'SSL'}; | 549 require IO::Socket::SSL if $extra{'SSL'}; |
550 IO::Socket::SSL->start_SSL($s, | 550 IO::Socket::SSL->start_SSL($s, |
551 SSL_version => 'SSLv23', | |
551 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | 552 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), |
552 SSL_npn_protocols => $npn ? [ $npn ] : undef, | 553 SSL_npn_protocols => $npn ? [ $npn ] : undef, |
553 SSL_alpn_protocols => $alpn ? [ $alpn ] : undef, | 554 SSL_alpn_protocols => $alpn ? [ $alpn ] : undef, |
554 SSL_error_trap => sub { die $_[1] } | 555 SSL_error_trap => sub { die $_[1] } |
555 ) if $extra{'SSL'}; | 556 ) if $extra{'SSL'}; |