]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: regex: pcre2 support
authorDavid Carlier <devnexen@gmail.com>
Mon, 21 Nov 2016 21:25:58 +0000 (21:25 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Dec 2016 11:51:51 +0000 (12:51 +0100)
commitf2592b29f13907ddf2bba42d00bc41cb8ee5b69b
tree0590d4f417c51e623ccdbbb6c2ab41163c1d2078
parent01e0974b5ae18c620d8aa8ca71f5965f90f41b63
MEDIUM: regex: pcre2 support

this adds a support of the newest pcre2 library,
more secure than its older sibling in a cost of a
more complex API.
It works pretty similarly to pcre's part to keep
the overall change smooth,  except :

- we define the string class supported at compile time.
- after matching the ovec data is properly sized, althought
we do not take advantage of it here.
- the lack of jit support is treated less 'dramatically'
as pcre2_jit_compile in this case is 'no-op'.
Makefile
include/common/regex.h
src/regex.c