]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: add rbinary expect match type
authorGaetan Rivet <grive@u256.net>
Fri, 7 Feb 2020 14:37:17 +0000 (15:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commitefab6c61d946b7e421fb1843833d4b2f4737cdb9
tree1efeca89555fd0241fa3b1b0a4cd1c0f2adb620a
parent21f3695126c1bc2bfdf32e1b12661b40a4311f7e
MINOR: checks: add rbinary expect match type

The rbinary match works similarly to the rstring match type, however the
received data is rewritten as hex-string before the match operation is
done.

This allows using regexes on binary content even with the POSIX regex
engine.

[Cf: I slightly updated the patch. mem2hex function was removed and dump_binary
is used instead.]
doc/configuration.txt
include/types/checks.h
src/cfgparse-listen.c
src/checks.c