MEDIUM: acl: extend the pattern parsers to report meaningful errors
By passing the error pointer to all ACL parsers, we can make them report
useful errors and not simply fail.
diff --git a/include/types/acl.h b/include/types/acl.h
index 00dfa0c..9e560cf 100644
--- a/include/types/acl.h
+++ b/include/types/acl.h
@@ -229,7 +229,7 @@
struct acl_expr;
struct acl_keyword {
const char *kw;
- int (*parse)(const char **text, struct acl_pattern *pattern, int *opaque);
+ int (*parse)(const char **text, struct acl_pattern *pattern, int *opaque, char **err);
int (*fetch)(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
const struct arg *args, struct sample *smp);
int (*match)(struct sample *smp, struct acl_pattern *pattern);