]> git.kaiwu.me - haproxy.git/commit
MINOR: ssl: allow prefix lookup for alpn_remove_token()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 20 Nov 2026 08:42:24 +0000 (09:42 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 20 Nov 2026 11:02:24 +0000 (12:02 +0100)
commit227cbbd2ab9e172b90068e4c525384b76ed9dc53
treed445fd387cf8cca096c52ac33d69cd33ffa4283f
parent778b7af9cb8a106f7a5eea0e2957b790deed7182
MINOR: ssl: allow prefix lookup for alpn_remove_token()

Extend alpn_remove_token() by adding an extra boolean argument <prefix>.
This changes how ALPN entries are compared, so that strings are
considered as matching if they begin with the specified value.

This will allow clearing ALPNs which may take various suffixes, for
example for hq-interop/h3 with an IETF draft version.
include/haproxy/ssl_utils.h
src/cfgparse-ssl.c
src/proxy.c
src/ssl_utils.c