MINOR: jwt: Parse JWT alg field
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 1 Oct 2021 13:36:54 +0000 (15:36 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 14 Oct 2021 14:38:08 +0000 (16:38 +0200)
commit7feb36177618026a9ed5b2f21c995093b087bd7e
tree23636bb9ecd948e50c96b3380ddbfe44040b14d5
parentf5dd337b12b39a9f81dca4d8367732e16b43b3dd
MINOR: jwt: Parse JWT alg field

The full list of possible algorithms used to create a JWS signature is
defined in section 3.1 of RFC7518. This patch adds a helper function
that converts the "alg" strings into an enum member.
Makefile
include/haproxy/jwt-t.h [new file with mode: 0644]
include/haproxy/jwt.h [new file with mode: 0644]
src/jwt.c [new file with mode: 0644]