# HG changeset patch # User Sergey Kandaurov # Date 1603411647 -3600 # Node ID d35db22947abac131ec31c6f98829ae71275ec8d # Parent 376cbc2c2b20c6eaf631025b1eb982737e891aab Tests: fixed ssl_reject_handshake.t with too old IO::Socket::SSL. diff --git a/ssl_reject_handshake.t b/ssl_reject_handshake.t --- a/ssl_reject_handshake.t +++ b/ssl_reject_handshake.t @@ -24,10 +24,10 @@ select STDOUT; $| = 1; 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');