Tests: fixed ssl_reject_handshake.t with too old IO::Socket::SSL.
diff --git a/ssl_reject_handshake.t b/ssl_reject_handshake.t
index 0f7d4b6..2011404 100644
--- a/ssl_reject_handshake.t
+++ b/ssl_reject_handshake.t
@@ -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');