]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add the ability to update a word fingerprint
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 17:59:31 +0000 (18:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 18:09:19 +0000 (19:09 +0100)
commite33c4b3c11f80a1252fbb17e0a3147d74888b61d
treef30488eac099b00a510e622acc56bae261902456
parentb736458bfa07e49746574a467c9c27e26e2d9f9e
MINOR: tools: add the ability to update a word fingerprint

Instead of making a new one from scratch, let's support not wiping the
existing fingerprint and updating it, and to do the same char by char.
The word-by-word one will still result in multiple beginnings and ends,
but that will accurately translate word boundaries. The char-based one
has more flexibility and requires that the caller maintains the previous
char to indicate the transition, which also allows to insert delimiters
for example.
include/haproxy/tools.h
src/tools.c