Mercurial > hg > nginx-tests
changeset 1935:6bafe9419126
Tests: allowed ssl_curve.t to run on BoringSSL.
Recently BoringSSL has got SSL_get_negotiated_group(),
which makes $ssl_curve to return the expected value.
While here, converted SSL library check into TODO.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 24 Aug 2023 14:59:26 +0400 |
parents | 4d13c9e74d04 |
children | 716d7500317d |
files | ssl_curve.t |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ssl_curve.t Tue Aug 22 14:29:16 2023 +0400 +++ b/ssl_curve.t Thu Aug 24 14:59:26 2023 +0400 @@ -23,7 +23,7 @@ select STDOUT; $| = 1; my $t = Test::Nginx->new() - ->has(qw/http http_ssl rewrite socket_ssl openssl:3.0.0/) + ->has(qw/http http_ssl rewrite socket_ssl/) ->has_daemon('openssl'); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -75,6 +75,10 @@ ############################################################################### +local $TODO = 'OpenSSL too old' + unless $t->has_feature('openssl:3.0.0') + or $t->has_module('BoringSSL'); + like(http_get('/curve', SSL => 1), qr/^prime256v1 /m, 'ssl curve'); ###############################################################################