]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: Validate the number of bits for the sha2 converter
authorTim Duesterhus <tim@bastelstu.be>
Tue, 17 Dec 2019 11:31:20 +0000 (12:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2019 12:28:00 +0000 (13:28 +0100)
commitcd3732456bda55d4cde9d20651560496c0ab9322
tree1c355d166425e06f9a69973980fafa8fbe8fb136
parent46dfd78cbf2591ab9cd2d8e30046e811f4179f7b
MINOR: sample: Validate the number of bits for the sha2 converter

Instead of failing the conversion when an invalid number of bits is
given the sha2 converter now fails with an appropriate error message
during startup.

The sha2 converter was introduced in d4376302377e4f51f43a183c2c91d929b27e1ae3,
which is in 2.1 and higher.
reg-tests/converter/sha2.vtc
src/sample.c