Mercurial > hg > nginx-tests
diff ssl_reject_handshake.t @ 1602:d35db22947ab
Tests: fixed ssl_reject_handshake.t with too old IO::Socket::SSL.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 23 Oct 2020 01:07:27 +0100 |
parents | 376cbc2c2b20 |
children | 5ac6efbe5552 |
line wrap: on
line diff
--- a/ssl_reject_handshake.t Thu Oct 22 18:55:53 2020 +0100 +++ b/ssl_reject_handshake.t Fri Oct 23 01:07:27 2020 +0100 @@ -24,10 +24,10 @@ eval { require IO::Socket::SSL; }; plan(skip_all => 'IO::Socket::SSL not installed') if $@; -eval { IO::Socket::SSL::SSL_VERIFY_NONE(); }; -plan(skip_all => 'IO::Socket::SSL too old') if $@; +eval { IO::Socket::SSL->can_client_sni() or die; }; +plan(skip_all => 'IO::Socket::SSL with OpenSSL SNI support required') if $@; -my $t = Test::Nginx->new()->has(qw/http http_ssl/)->has_daemon('openssl'); +my $t = Test::Nginx->new()->has(qw/http http_ssl sni/)->has_daemon('openssl'); $t->write_file_expand('nginx.conf', <<'EOF');