comparison 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
comparison
equal deleted inserted replaced
1601:376cbc2c2b20 1602:d35db22947ab
22 select STDERR; $| = 1; 22 select STDERR; $| = 1;
23 select STDOUT; $| = 1; 23 select STDOUT; $| = 1;
24 24
25 eval { require IO::Socket::SSL; }; 25 eval { require IO::Socket::SSL; };
26 plan(skip_all => 'IO::Socket::SSL not installed') if $@; 26 plan(skip_all => 'IO::Socket::SSL not installed') if $@;
27 eval { IO::Socket::SSL::SSL_VERIFY_NONE(); }; 27 eval { IO::Socket::SSL->can_client_sni() or die; };
28 plan(skip_all => 'IO::Socket::SSL too old') if $@; 28 plan(skip_all => 'IO::Socket::SSL with OpenSSL SNI support required') if $@;
29 29
30 my $t = Test::Nginx->new()->has(qw/http http_ssl/)->has_daemon('openssl'); 30 my $t = Test::Nginx->new()->has(qw/http http_ssl sni/)->has_daemon('openssl');
31 31
32 $t->write_file_expand('nginx.conf', <<'EOF'); 32 $t->write_file_expand('nginx.conf', <<'EOF');
33 33
34 %%TEST_GLOBALS%% 34 %%TEST_GLOBALS%%
35 35