]> git.kaiwu.me - haproxy.git/commit
REGTESTS: sample_fetches: test req.ssl_ver on an SSLv2 CLIENT-HELLO
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 06:37:48 +0000 (06:37 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:25:37 +0000 (17:25 +0200)
commit96236f43121e1d7d69a871d10737a28cff112e48
tree095c3d00de8707fd6e12dd088962b503bbbf6845
parent04403f387033cd3b7d201be9ab85d13300f9e087
REGTESTS: sample_fetches: test req.ssl_ver on an SSLv2 CLIENT-HELLO

req.ssl_ver is the only fetch of the family which accepts the SSLv2
record format in addition to the SSLv3 one, and that second half of
smp_fetch_req_ssl_ver() was not reached by the ClientHellos of the
first frontend. It is also the only one whose ACL parses its pattern
in dotted notation, which was not covered either.

A second frontend, which rejects everything and only reports the
fetches in its log, receives an SSLv2 CLIENT-HELLO with the short
record header announcing SSLv3.0, another one with the long record
header, its padding length, two ciphers and a 32-byte challenge,
announcing TLSv1.0, and finally a plain HTTP request which is neither.
The version is checked both as a number and through the "3.0" and
"gt 3.0" patterns of the two ACL spellings, while req.ssl_hello_type
and req.ssl_sni, which only know the SSLv3 record, return nothing.
reg-tests/sample_fetches/ssl_hello_type.vtc