Mercurial > hg > nginx-tests
comparison ssl_sni.t @ 246:6072306b7924
Tests: set SSL_verify_mode explicitly.
As of IO::Socket::SSL 1.79 warning appear if SSL_verify_mode isn't
explicitly set.
author | Homutov Vladimir <vl@nginx.com> |
---|---|
date | Wed, 16 Jan 2013 17:42:00 +0400 |
parents | de7338227832 |
children | 6a0d934950bc |
comparison
equal
deleted
inserted
replaced
245:7189255c1b91 | 246:6072306b7924 |
---|---|
129 alarm(2); | 129 alarm(2); |
130 $s = IO::Socket::SSL->new( | 130 $s = IO::Socket::SSL->new( |
131 Proto => 'tcp', | 131 Proto => 'tcp', |
132 PeerAddr => '127.0.0.1:8443', | 132 PeerAddr => '127.0.0.1:8443', |
133 SSL_hostname => $host, | 133 SSL_hostname => $host, |
134 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | |
134 SSL_error_trap => sub { die $_[1] } | 135 SSL_error_trap => sub { die $_[1] } |
135 ); | 136 ); |
136 alarm(0); | 137 alarm(0); |
137 }; | 138 }; |
138 alarm(0); | 139 alarm(0); |