Skip to content

Commit 50a8860

Browse files
committed
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.
1 parent dcfe53a commit 50a8860

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ssl_stapling.t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ http {
5757
5858
ssl_ciphers DEFAULT:ECCdraft;
5959
60+
add_header X-SSL-Protocol $ssl_protocol always;
61+
6062
server {
6163
listen 127.0.0.1:8443 ssl;
6264
listen 127.0.0.1:8080;
@@ -341,7 +343,7 @@ sub staple {
341343
}
342344

343345
sub test_tls13 {
344-
return http_get('/', start => 1, SSL => 1) =~ /TLSv1.3/;
346+
return http_get('/', SSL => 1) =~ /TLSv1.3/;
345347
}
346348

347349
###############################################################################

0 commit comments

Comments
 (0)