Add the ability to build custom request body parser extensions.

Add an example for a request body parser extension.
This commit is contained in:
b1v1r
2010-05-05 23:01:11 +00:00
parent f7f305991f
commit 058283fb5a
9 changed files with 334 additions and 22 deletions

View File

@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
typedef struct rule_exception rule_exception;
@@ -369,6 +370,9 @@ struct modsec_rec {
* are to allow phases 1-2 only.
*/
unsigned int allow_scope;
/* Generic request body processor context to be used by custom parsers. */
void *reqbody_processor_ctx;
};
struct directory_config {