comparison h2_ssl_verify_client.t @ 1032:43eedbfea090

Tests: add missing sni prerequisites.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 14 Sep 2016 19:55:29 +0300
parents 882267679006
children 45c80276d691
comparison
equal deleted inserted replaced
1031:be45fa007655 1032:43eedbfea090
28 eval { IO::Socket::SSL->can_client_sni() or die; }; 28 eval { IO::Socket::SSL->can_client_sni() or die; };
29 plan(skip_all => 'IO::Socket::SSL with OpenSSL SNI support required') if $@; 29 plan(skip_all => 'IO::Socket::SSL with OpenSSL SNI support required') if $@;
30 eval { IO::Socket::SSL->can_alpn() or die; }; 30 eval { IO::Socket::SSL->can_alpn() or die; };
31 plan(skip_all => 'OpenSSL ALPN support required') if $@; 31 plan(skip_all => 'OpenSSL ALPN support required') if $@;
32 32
33 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2/) 33 my $t = Test::Nginx->new()->has(qw/http http_ssl sni http_v2/)
34 ->has_daemon('openssl')->plan(3); 34 ->has_daemon('openssl')->plan(3);
35 35
36 $t->write_file_expand('nginx.conf', <<'EOF'); 36 $t->write_file_expand('nginx.conf', <<'EOF');
37 37
38 %%TEST_GLOBALS%% 38 %%TEST_GLOBALS%%