MINOR: jwt: Do not rely on enum order anymore
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 18 Oct 2021 13:14:48 +0000 (15:14 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 18 Oct 2021 14:02:31 +0000 (16:02 +0200)
commit8abed17a347f50d5bdb437e90530cb3be4020c7d
treea2dfbdf1ba6cc0cb76c319bf38ece29fcaeb220e
parent1c891bcc90346aa84f8b16bc6fe00fa6c104a4cb
MINOR: jwt: Do not rely on enum order anymore

Replace the test based on the enum value of the algorithm by an explicit
switch statement in case someone reorders it for some reason (while
still managing not to break the regtest).
src/jwt.c