aboutsummaryrefslogtreecommitdiff
path: root/handler.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-10-09 09:42:26 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-10-09 09:42:26 +0200
commit197b8c52b74322cd2289fd365e4cb65074682870 (patch)
treef35456c3d6122746858e93be3656cd6029c02210 /handler.h
parent8d8179d3b412cdd2c1af60539b9aec89631f3fe6 (diff)
downloadslcl-197b8c52b74322cd2289fd365e4cb65074682870.tar.gz
jwt.c: Use original base64 variant
Otherwise, cookies set by previous, OpenSSL-based versions of slcl would be now invalidated because URL-safe base64 transforms some characters, thus breaking backwards compatiblity. For example, '/' is transformed into '_' on the example cookies below: - Original base64 encoding: a=eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJuYW1lIjogImEifQ==.jgp/SsraDR/3zlAnDLyj05VHulUNbDNHaPowvUkLto4= - URL-safe base64 encoding: a=eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJuYW1lIjogImEifQ==.jgp_SsraDR_3zlAnDLyj05VHulUNbDNHaPowvUkLto4=
Diffstat (limited to 'handler.h')
0 files changed, 0 insertions, 0 deletions