]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: jws: use jwt_alg type instead of a char
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 17 Mar 2025 16:34:24 +0000 (17:34 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 17 Mar 2025 17:06:34 +0000 (18:06 +0100)
commit29b4b985c3c2b465ae639536620d515510d49122
tree4647d90029631608c5b37e10a4010a22a92cdf4f
parent19e48f237f864347678845f03eb5e01c08130efe
MINOR: jws: use jwt_alg type instead of a char

This patch implements the function EVP_PKEY_to_jws_algo() which returns
a jwt_alg compatible with the private key.

This value can then be passed to jws_b64_protected() and
jws_b64_signature() which modified to take an jwt_alg instead of a char.
include/haproxy/jws.h
src/jws.c