comparison ssl_curve.t @ 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 a797d7428fa5
children 2a0a6035a1af
comparison
equal deleted inserted replaced
1934:4d13c9e74d04 1935:6bafe9419126
21 21
22 select STDERR; $| = 1; 22 select STDERR; $| = 1;
23 select STDOUT; $| = 1; 23 select STDOUT; $| = 1;
24 24
25 my $t = Test::Nginx->new() 25 my $t = Test::Nginx->new()
26 ->has(qw/http http_ssl rewrite socket_ssl openssl:3.0.0/) 26 ->has(qw/http http_ssl rewrite socket_ssl/)
27 ->has_daemon('openssl'); 27 ->has_daemon('openssl');
28 28
29 $t->write_file_expand('nginx.conf', <<'EOF'); 29 $t->write_file_expand('nginx.conf', <<'EOF');
30 30
31 %%TEST_GLOBALS%% 31 %%TEST_GLOBALS%%
73 73
74 $t->try_run('no $ssl_curve')->plan(1); 74 $t->try_run('no $ssl_curve')->plan(1);
75 75
76 ############################################################################### 76 ###############################################################################
77 77
78 local $TODO = 'OpenSSL too old'
79 unless $t->has_feature('openssl:3.0.0')
80 or $t->has_module('BoringSSL');
81
78 like(http_get('/curve', SSL => 1), qr/^prime256v1 /m, 'ssl curve'); 82 like(http_get('/curve', SSL => 1), qr/^prime256v1 /m, 'ssl curve');
79 83
80 ############################################################################### 84 ###############################################################################