Thierry FOURNIER | a5ec06d | 2017-04-10 23:47:23 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Modsecurity wrapper for haproxy |
| 3 | * |
| 4 | * This file contains the headers of the wrapper which sends data |
| 5 | * in ModSecurity and returns the verdict. |
| 6 | * |
| 7 | * Copyright 2016 OZON, Thierry Fournier <thierry.fournier@ozon.io> |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License |
| 11 | * as published by the Free Software Foundation; either version |
| 12 | * 2 of the License, or (at your option) any later version. |
| 13 | * |
| 14 | */ |
| 15 | #ifndef __MODSEC_WRAPPER_H__ |
| 16 | #define __MODSEC_WRAPPER_H__ |
| 17 | |
| 18 | #include "spoa.h" |
| 19 | |
| 20 | struct modsecurity_parameters { |
| 21 | struct sample uniqueid; |
| 22 | struct sample method; |
| 23 | struct sample path; |
| 24 | struct sample query; |
| 25 | struct sample vers; |
| 26 | struct sample hdrs_bin; |
| 27 | struct sample body_length; |
| 28 | struct sample body; |
| 29 | }; |
| 30 | |
| 31 | int modsecurity_load(const char *file); |
| 32 | int modsecurity_process(struct worker *worker, struct modsecurity_parameters *params); |
| 33 | |
| 34 | #endif /* __MODSEC_WRAPPER_H__ */ |