Mercurial > hg > nginx-tests
changeset 1867:231b14e2041a
Tests: unbreak ssl_stapling.t after IO::Socket::SSL refactoring.
Previously, the test used to check the established SSL/TLS protocol version
using Net::SSLeay on the client side. Now it is provided on the server side
within a server response. Added missing bits to make this actually work.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 22 May 2023 20:44:33 +0400 |
parents | a797d7428fa5 |
children | d570dbcad925 |
files | ssl_stapling.t |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ssl_stapling.t Thu May 18 18:07:19 2023 +0300 +++ b/ssl_stapling.t Mon May 22 20:44:33 2023 +0400 @@ -57,6 +57,8 @@ ssl_ciphers DEFAULT:ECCdraft; + add_header X-SSL-Protocol $ssl_protocol always; + server { listen 127.0.0.1:8443 ssl; listen 127.0.0.1:8080; @@ -341,7 +343,7 @@ } sub test_tls13 { - return http_get('/', start => 1, SSL => 1) =~ /TLSv1.3/; + return http_get('/', SSL => 1) =~ /TLSv1.3/; } ###############################################################################