]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: jwe: Fix jwt.decrypt_alg_list to work correctly
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 7 May 2026 16:27:58 +0000 (18:27 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 7 May 2026 16:09:47 +0000 (18:09 +0200)
commit81abfaa4dfad9a2d5d0f81951fe7710226d8f1dd
tree8caf060cf9f6bcb226df71ba3752d2ec2fd12205
parent495eb7b0e0ca95cfd1621961eb21566b06ca6246
BUG/MEDIUM: jwe: Fix jwt.decrypt_alg_list to work correctly

Function jwe_parse_global_alg_enc_list() handles both
jwt.decrypt_alg_list and jwd.decrypt_enc_list, but to know which array
to use, between the algorithms and encoding arrays to use, it was
checking the string to see if it matched jwe.supported_algorithms, so it
was always considering we were dealing with encodings, and
jwt.decrypt_alg_list could not possibly work.
Fix that by checking the right string.
src/jwe.c