]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: acl: make all ACLs reference the fetch function via a sample.
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Jan 2013 14:49:37 +0000 (15:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Apr 2013 00:12:58 +0000 (02:12 +0200)
commit8ed669b12af309220d60951446282747ec15c906
treec555d516136c375d58456d9a8e16eac2039e3eee
parent281c799e25d6ac22125fac99333c0be50c604d20
MAJOR: acl: make all ACLs reference the fetch function via a sample.

ACL fetch functions used to directly reference a fetch function. Now
that all ACL fetches have their sample fetches equivalent, we can make
ACLs reference a sample fetch keyword instead.

In order to simplify the code, a sample keyword name may be NULL if it
is the same as the ACL's, which is the most common case.

A minor change appeared, http_auth always expects one argument though
the ACL allowed it to be missing and reported as such afterwards, so
fix the ACL to match this. This is not really a bug.
13 files changed:
include/proto/acl.h
include/proto/sample.h
include/types/acl.h
src/acl.c
src/backend.c
src/frontend.c
src/haproxy.c
src/listener.c
src/payload.c
src/proto_http.c
src/proto_tcp.c
src/session.c
src/ssl_sock.c