]> git.kaiwu.me - haproxy.git/commit
REGTESTS: sample_fetches: test the raw TLS hello fetches
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 04:10:31 +0000 (04:10 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:19:30 +0000 (17:19 +0200)
commita946b58c693a6dfded519d4ef314531febcf0369
treed64c85b33aff6e00a006b8bdaf808ef15d5b95fa
parentd20bc62c0c83d7f461e8d098cace7a5819f532c6
REGTESTS: sample_fetches: test the raw TLS hello fetches

req.ssl_hello_type, req.ssl_ver, req.ssl_ec_ext, req.ssl_st_ext and
res.ssl_hello_type had no coverage, nor had the deprecated
req_ssl_hello_type, req_ssl_ver, req_ssl_sni and rep_ssl_hello_type
aliases. They parse the raw buffer of a TCP proxy without any SSL data
layer, so the handshake messages are crafted by hand with sendhex the
same way the other ClientHello tests do, and a server answers each of
them with a ServerHello so that the response side is covered too.

Three ClientHellos are used: one carrying server_name, supported_groups
and an empty session ticket, one carrying a session ticket with data
and no supported_groups, and one carrying a single unrelated extension
so that req.ssl_st_ext reports its documented zero.
reg-tests/sample_fetches/ssl_hello_type.vtc [new file with mode: 0644]