Mercurial > hg > nginx-tests
comparison stream_ssl_realip.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 |
---|---|
131 eval { | 131 eval { |
132 local $SIG{ALRM} = sub { die "timeout\n" }; | 132 local $SIG{ALRM} = sub { die "timeout\n" }; |
133 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 133 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
134 alarm(8); | 134 alarm(8); |
135 IO::Socket::SSL->start_SSL($s, | 135 IO::Socket::SSL->start_SSL($s, |
136 SSL_version => 'SSLv23', | |
136 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | 137 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), |
137 SSL_error_trap => sub { die $_[1] } | 138 SSL_error_trap => sub { die $_[1] } |
138 ); | 139 ); |
139 alarm(0); | 140 alarm(0); |
140 }; | 141 }; |