]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] acl: enforce ACL type checking
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Jul 2008 17:13:19 +0000 (19:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Jul 2008 17:13:19 +0000 (19:13 +0200)
commita9802633d88ddd08cbaa0bee1a86d3849bc2e4a8
tree1716cc6ec5643b2ddea851a1efe5d77a43d8b42e
parentb6fb420c7ed62352e41379a09fb351d9c1480593
[MEDIUM] acl: enforce ACL type checking

ACL now hold information on the availability of the data they rely
on. They can indicate which parts of the requests/responses they
require, and the rules parser may now report inconsistencies.

As an example, switching rules are now checked for response-specific
ACLs, though those are not still set. A warning is reported in case
of mismatch. ACLs keyword restrictions will now have to be specifically
set wherever a better control is expected.

The line number where an ACL condition is declared has been added to
the conditions in order to be able to report the faulty line number
during post-loading checks.
include/types/acl.h
src/acl.c
src/cfgparse.c