-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmodsec_wrapper.h
More file actions
34 lines (30 loc) · 945 Bytes
/
modsec_wrapper.h
File metadata and controls
34 lines (30 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Modsecurity wrapper for haproxy
*
* This file contains the headers of the wrapper which sends data
* in ModSecurity and returns the verdict.
*
* Copyright 2016 OZON, Thierry Fournier <thierry.fournier@ozon.io>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
*/
#ifndef __MODSEC_WRAPPER_H__
#define __MODSEC_WRAPPER_H__
#include "spoa.h"
struct modsecurity_parameters {
struct sample uniqueid;
struct sample method;
struct sample path;
struct sample query;
struct sample vers;
struct sample hdrs_bin;
struct sample body_length;
struct sample body;
};
int modsecurity_load(const char *file);
int modsecurity_process(struct worker *worker, struct modsecurity_parameters *params);
#endif /* __MODSEC_WRAPPER_H__ */