Mercurial > hg > nginx-tests
diff ssl_certificates.t @ 1397:d3d2aabe16dd
Tests: LibreSSL client detection in multiple certificate tests.
SSL_CTRL_SET_SIGALGS_LIST and TLSv1.3 support are missing from LibreSSL
despite high OPENSSL_VERSION_NUMBER. Treat it as pre-1.0.2 OpenSSL client.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 13 Nov 2018 18:29:16 +0300 |
parents | 0090e2476ef0 |
children | 94bcad5611af |
line wrap: on
line diff
--- a/ssl_certificates.t Tue Nov 13 13:20:25 2018 +0300 +++ b/ssl_certificates.t Tue Nov 13 18:29:16 2018 +0300 @@ -133,7 +133,8 @@ my $ctx = Net::SSLeay::CTX_new() or die("Failed to create SSL_CTX $!"); if (defined $type) { - if (Net::SSLeay::SSLeay() < 0x1000200f) { + my $ssleay = Net::SSLeay::SSLeay(); + if ($ssleay < 0x1000200f || $ssleay == 0x20000000) { Net::SSLeay::CTX_set_cipher_list($ctx, $type) or die("Failed to set cipher list"); } else {