Skip to content

Commit 52bf350

Browse files
committed
Tests: unbreak tests for nginx built with AWS-LC.
Similar to BoringSSL, AWS-LC doesn't support TLSv1.3 server-side session cache, and lacks SSL_get_negotiated_group() and SSL_get_shared_ciphers().
1 parent 1ce06f1 commit 52bf350

7 files changed

+8
-8
lines changed

h3_ssl_early_data.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $s = Test::Nginx::HTTP3->new(8980, psk_list => $psk_list, early_data => {});
8989
TODO: {
9090
local $TODO = 'no 0-RTT in OpenSSL compat layer'
9191
unless $t->has_module('OpenSSL [.0-9]+\+quic')
92-
or $t->has_module('BoringSSL')
92+
or $t->has_module('BoringSSL|AWS-LC')
9393
or $t->has_module('LibreSSL');
9494

9595
$frames = $s->read(all => [{ sid => 0, fin => 1 }]);

h3_ssl_session_reuse.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ is(test_reuse(8943), 1, 'tickets reused');
138138
is(test_reuse(8944), 1, 'tickets and cache reused');
139139

140140
local $TODO = 'no TLSv1.3 session cache in BoringSSL'
141-
if $t->has_module('BoringSSL');
141+
if $t->has_module('BoringSSL|AWS-LC');
142142

143143
is(test_reuse(8945), 1, 'cache shared reused');
144144
is(test_reuse(8946), 1, 'cache builtin reused');

mail_ssl_session_reuse.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ is(test_reuse(8994), 1, 'tickets and cache reused');
146146

147147
TODO: {
148148
local $TODO = 'no TLSv1.3 session cache in BoringSSL'
149-
if $t->has_module('BoringSSL') && test_tls13();
149+
if $t->has_module('BoringSSL|AWS-LC') && test_tls13();
150150

151151
is(test_reuse(8995), 1, 'cache shared reused');
152152
is(test_reuse(8996), 1, 'cache builtin reused');

ssl.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ TODO: {
217217
local $TODO = 'no TLSv1.3 sessions in LibreSSL'
218218
if $t->has_module('LibreSSL') && test_tls13();
219219
local $TODO = 'no TLSv1.3 sessions ids in BoringSSL'
220-
if $t->has_module('BoringSSL') && test_tls13();
220+
if $t->has_module('BoringSSL|AWS-LC') && test_tls13();
221221

222222
like(get('/id', 8085, $ctx), qr/^body \w{64}$/m, 'session id reused');
223223

@@ -228,7 +228,7 @@ unlike(http_get('/id'), qr/body \w/, 'session id no ssl');
228228
like(get('/cipher', 8085), qr/^body [\w-]+$/m, 'cipher');
229229

230230
SKIP: {
231-
skip 'BoringSSL', 1 if $t->has_module('BoringSSL');
231+
skip 'BoringSSL', 1 if $t->has_module('BoringSSL|AWS-LC');
232232

233233
like(get('/ciphers', 8085), qr/^body [:\w-]+$/m, 'ciphers');
234234

ssl_session_reuse.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ is(test_reuse(8444), 1, 'tickets and cache reused');
173173

174174
TODO: {
175175
local $TODO = 'no TLSv1.3 session cache in BoringSSL'
176-
if $t->has_module('BoringSSL') && test_tls13();
176+
if $t->has_module('BoringSSL|AWS-LC') && test_tls13();
177177

178178
is(test_reuse(8445), 1, 'cache shared reused');
179179
is(test_reuse(8446), 1, 'cache builtin reused');

ssl_sni_sessions.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ plan(skip_all => 'no TLSv1.3 sessions, old IO::Socket::SSL')
117117
plan(skip_all => 'no TLSv1.3 sessions in LibreSSL')
118118
if $t->has_module('LibreSSL') && test_tls13();
119119
plan(skip_all => 'no TLS 1.3 session cache in BoringSSL')
120-
if $t->has_module('BoringSSL') && test_tls13();
120+
if $t->has_module('BoringSSL|AWS-LC') && test_tls13();
121121

122122
$t->plan(6);
123123

stream_ssl_session_reuse.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ is(test_reuse(8444), 1, 'tickets and cache reused');
150150

151151
TODO: {
152152
local $TODO = 'no TLSv1.3 session cache in BoringSSL'
153-
if $t->has_module('BoringSSL') && test_tls13();
153+
if $t->has_module('BoringSSL|AWS-LC') && test_tls13();
154154

155155
is(test_reuse(8445), 1, 'cache shared reused');
156156
is(test_reuse(8446), 1, 'cache builtin reused');

0 commit comments

Comments
 (0)