]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl/cli: don't clear the jwt flag on "add ssl crt-list"
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 25 Nov 2026 17:04:36 +0000 (18:04 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 25 Nov 2026 16:51:43 +0000 (17:51 +0100)
commit0b634287cccd0587ec7cde99495900bf2abf1877
treec8db34e51bd29cb0164b3445bf02051afde882cd
parentea809b9fae0c0e752d3515860375fa62bdf12291
BUG/MINOR: ssl/cli: don't clear the jwt flag on "add ssl crt-list"

When a store without any instance takes the conf parsed from an "add ssl
crt-list" line, its "jwt" flag is overwritten too, while the certificate
is still in the JWT tree. After "add ssl jwt" followed by "add ssl
crt-list", the certificate is no longer listed by "show ssl jwt", it can
be deleted while in use for JWT validation, and the JWT tree is no
longer updated when the certificate is.

Let's keep the flag when it was set. This was introduced by commit
18ff130e9 ("MINOR: jwt: Add new "jwt" certificate option") in 3.3-dev10,
so this should be backported to 3.3.
src/ssl_crtlist.c