BUG/MEDIUM: ssl: crt-list negative filters don't work
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 17 Aug 2020 12:31:19 +0000 (14:31 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 17 Aug 2020 12:57:00 +0000 (14:57 +0200)
commit30f9e095f5ed695348f3041ef183f25739c2ace1
tree82720ecfdfd02dbc8f9fd7109f0e0f94e55ec21d
parent77016daabed85789f858606495c3d79000f7fa6e
BUG/MEDIUM: ssl: crt-list negative filters don't work

The negative filters which are supposed to exclude a SNI from a
wildcard, never worked. Indeed the negative filters were skipped in the
code.

To fix the issue, this patch looks for negative filters that are on the
same line as a the wildcard that just matched.

This patch should fix issue #818. It must be backported in 2.2.  The
problem also exists in versions > 1.8 but the infrastructure required to
fix this was only introduced in 2.1.  In older versions we should
probably change the documentation to state that negative filters are
useless.
src/ssl_sock.c