changeset 1399:de181159f279

Tests: unbreak $ssl_ciphers test with BoringSSL. SSL_get_shared_ciphers() is a stub there.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 19 Nov 2018 18:14:37 +0300
parents 9242811bf22b
children 94bcad5611af
files ssl.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ssl.t
+++ b/ssl.t
@@ -247,7 +247,8 @@ 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', 8084), qr/^body [:\w-]+$/m, 'ciphers');
+my $re = $t->has_module('BoringSSL') ? '' : qr/[:\w-]+/;
+like(get('/ciphers', 8084), qr/^body $re$/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');