# HG changeset patch # User Sergey Kandaurov # Date 1539167085 -10800 # Node ID 965bddf88b8fdd5b4be00c3b4af8bed68b97dd09 # Parent e5246e5caa313eef64efdf00c55ca338d27b9304 Tests: disabled session cache for $ssl_ciphers tests. With older OpenSSL versions, the variable is available only for new sessions. diff --git a/ssl.t b/ssl.t --- a/ssl.t +++ b/ssl.t @@ -68,9 +68,6 @@ http { location /cipher { return 200 "body $ssl_cipher"; } - location /ciphers { - return 200 "body $ssl_ciphers"; - } location /client_verify { return 200 "body $ssl_client_verify"; } @@ -139,6 +136,9 @@ http { location / { return 200 "body $ssl_session_reused"; } + location /ciphers { + return 200 "body $ssl_ciphers"; + } } } @@ -247,7 +247,7 @@ like(get('/', 8081), qr/^body \.$/m, 'se like(get('/id', 8085), qr/^body \w{64}$/m, 'session id'); unlike(http_get('/id'), qr/body \w/, 'session id no ssl'); like(get('/cipher', 8085), qr/^body [\w-]+$/m, 'cipher'); -like(get('/ciphers', 8085), qr/^body [:\w-]+$/m, 'ciphers'); +like(get('/ciphers', 8084), qr/^body [:\w-]+$/m, 'ciphers'); like(get('/client_verify', 8085), qr/^body NONE$/m, 'client verify'); like(get('/protocol', 8085), qr/^body (TLS|SSL)v(\d|\.)+$/m, 'protocol'); like(cert('/issuer', 8085), qr!^body CN=issuer:/CN=issuer$!m, 'issuer');