]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: don't rely on the base64 utility when openssl base64 is already used
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 19:59:36 +0000 (20:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 20:10:09 +0000 (21:10 +0100)
commita89a2d89021400ecb0350760112b8d27cb33896b
tree503aac8654a7ef1558bfa60a9372f0a9183abe6f
parenta1ace74b7e29d7a3c74433da15355a674117b2b3
REGTESTS: don't rely on the base64 utility when openssl base64 is already used

Regtest ocsp_auto_update.vtc used to fail here on FreeBSD because the
base64 utility was not installed by default. Once installed it would
still fail because the utility doesn't support -w to wrap lines. Since
the regtest already relies on openssl base64 for a few commands, let's
just rely on it for the other ones. The only limitation is that openssl
freezes on lines longer than 1024 bytes, and doesn't seem to process more
than 255 chars at once, which might be the reason for using base64 -w 1000
in the first place (the script was probably tested like this). Instead
sed is efficient at wrapping long lines and does the job pretty well.
The output was fixed at 72 chars so that the output is also readable on
a terminal for debugging.
reg-tests/ssl/ocsp_auto_update.vtc