Mercurial > hg > nginx-tests
comparison ssl_sni_reneg.t @ 1377:09c2291b2bab
Tests: relaxed test for no response on SSL renegotiation attempt.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 17 Sep 2018 16:40:37 +0300 |
parents | 0af58b78df35 |
children | f50c7d90f5c9 |
comparison
equal
deleted
inserted
replaced
1376:92ba8ef8d6b2 | 1377:09c2291b2bab |
---|---|
102 ok(Net::SSLeay::renegotiate($ssl), 'renegotiation'); | 102 ok(Net::SSLeay::renegotiate($ssl), 'renegotiation'); |
103 ok(Net::SSLeay::set_tlsext_host_name($ssl, 'localhost'), 'SNI'); | 103 ok(Net::SSLeay::set_tlsext_host_name($ssl, 'localhost'), 'SNI'); |
104 | 104 |
105 Net::SSLeay::write($ssl, 'Host: localhost' . CRLF . CRLF); | 105 Net::SSLeay::write($ssl, 'Host: localhost' . CRLF . CRLF); |
106 | 106 |
107 is(Net::SSLeay::read($ssl), undef, 'response'); | 107 ok(!Net::SSLeay::read($ssl), 'response'); |
108 | 108 |
109 } | 109 } |
110 | 110 |
111 ############################################################################### | 111 ############################################################################### |
112 | 112 |