Mercurial > hg > nginx-tests
comparison lib/Test/Nginx/Stream.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 | dbb7561a9441 |
children | d732a96e05df |
comparison
equal
deleted
inserted
replaced
1969:3ba1668cea87 | 1970:6d3a8f4eb9b2 |
---|---|
52 | 52 |
53 if ({@_}->{'SSL'}) { | 53 if ({@_}->{'SSL'}) { |
54 require IO::Socket::SSL; | 54 require IO::Socket::SSL; |
55 IO::Socket::SSL->start_SSL( | 55 IO::Socket::SSL->start_SSL( |
56 $self->{_socket}, | 56 $self->{_socket}, |
57 SSL_version => 'SSLv23', | |
57 SSL_verify_mode => | 58 SSL_verify_mode => |
58 IO::Socket::SSL::SSL_VERIFY_NONE(), | 59 IO::Socket::SSL::SSL_VERIFY_NONE(), |
59 @_ | 60 @_ |
60 ) | 61 ) |
61 or die $IO::Socket::SSL::SSL_ERROR . "\n"; | 62 or die $IO::Socket::SSL::SSL_ERROR . "\n"; |