File: modsec_wrapper.h

package info (click to toggle)
haproxy 2.2.9-2%2Bdeb11u6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,012 kB
  • sloc: ansic: 166,229; javascript: 2,442; sh: 1,782; xml: 1,754; makefile: 1,068; python: 1,048; perl: 168
file content (34 lines) | stat: -rw-r--r-- 945 bytes parent folder | download | duplicates (4)
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__ */