changeset 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 8d2d37a4b48e
files ssl_reject_handshake.t
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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');