]> git.kaiwu.me - haproxy.git/commit
REGTESTS: sample_fetches: test the req.ssl_alpn fetch
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 06:39:40 +0000 (06:39 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:25:37 +0000 (17:25 +0200)
commit701c7474b83b128783a7b0a0ebbdc7d83314e845
treecc65d99bf12e186ca185cefd005f43d95cecda8b
parent96236f43121e1d7d69a871d10737a28cff112e48
REGTESTS: sample_fetches: test the req.ssl_alpn fetch

req.ssl_alpn was the last fetch of the raw ClientHello family without a
test of its own, it only appeared as a condition in the tcp-check test.
It is also the only one of the family which returns several samples,
one per protocol name of the extension, so the test checks that a
log-format only sees the first name while an ACL matches any of them.

Five hand-crafted ClientHellos are used: one advertising "h2" and
"http/1.1" behind a server_name extension, one advertising the single
"acme-tls/1" name of the documentation example, one without any ALPN
extension, one whose ALPN extension is too short to hold a name, and
one announcing a name longer than the extension which carries it, the
last two checking that the fetch gives up instead of reading the
extension which follows.
reg-tests/sample_fetches/ssl_client_hello_alpn.vtc [new file with mode: 0644]