This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 12fdb07308 Fixx autest tls_sni_ticket so it can work with BoringSSL
(#13100)
12fdb07308 is described below
commit 12fdb0730899ce95d19f4ded25c408390b9faf9d
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Fri Apr 17 16:38:05 2026 -0600
Fixx autest tls_sni_ticket so it can work with BoringSSL (#13100)
The per-SNI override is unavailable with BoringSSL. The expected number of
tickets should be different for BoringSSL.
---
tests/gold_tests/tls/tls_sni_ticket.test.py | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/tests/gold_tests/tls/tls_sni_ticket.test.py
b/tests/gold_tests/tls/tls_sni_ticket.test.py
index 22eedd9515..d9d6d62abb 100644
--- a/tests/gold_tests/tls/tls_sni_ticket.test.py
+++ b/tests/gold_tests/tls/tls_sni_ticket.test.py
@@ -217,10 +217,21 @@ ssl_multicert:
f'openssl s_client -connect
127.0.0.1:{self.ts_on.Variables.ssl_port} -servername tickets-on.com -tls1_3
-msg -ign_eof')
tr.ReturnCode = 0
self.start_processes_if_needed(tr, start_server=True, start_ts_on=True)
+
+ # BoringSSL only exposes SSL_CTX_set_num_tickets() (context-level),
+ # not SSL_set_num_tickets() (per-connection), so the per-SNI
+ # ssl_ticket_number override cannot change the ticket count. The
+ # CTX-level value for ts_on is 0, so expect 0 tickets.
+ if Condition.IsBoringSSL():
+ expected_count = 0
+ description = 'Check that tickets-on.com receives no TLSv1.3
tickets (BoringSSL ignores per-SNI ticket count)'
+ else:
+ expected_count = 3
+ description = 'Check that tickets-on.com receives three TLSv1.3
tickets'
+
tr.Processes.Default.Streams.All.Content = Testers.Lambda(
lambda info, tester: TlsSniTicketTest.check_regex_count(
- tr.Processes.Default.Streams.All.AbsPath, r'NewSessionTicket',
3,
- 'Check that tickets-on.com receives three TLSv1.3 tickets'))
+ tr.Processes.Default.Streams.All.AbsPath, r'NewSessionTicket',
expected_count, description))
tr.StillRunningAfter += self.server
tr.StillRunningAfter += self.ts_on