]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listener/ssl: set the SSL xprt layer only once the whole config is known
authorWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 15:14:31 +0000 (17:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 16:41:55 +0000 (18:41 +0200)
commit2071a99dfed31f2c776fa633d128c297c8ad2396
treec65cfa0636dffc1d26899b2b2311ded29774a301
parent78d0dcd5196fd630190998cb420cdcf1e8a215d7
MINOR: listener/ssl: set the SSL xprt layer only once the whole config is known

We used to preset XPRT_SSL on bind_conf->xprt when parsing the "ssl"
keyword, which required to be careful about what QUIC could have set
before, and which makes it impossible to consider the whole line to
set all options.

Now that we have the BC_O_USE_SSL option on the bind_conf, it becomes
easier to set XPRT_SSL only once the bind_conf's args are parsed.
src/cfgparse-ssl.c
src/listener.c