2 * ModSecurity for Apache 2.x, http://www.modsecurity.org/
3 * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
5 * This product is released under the terms of the General Public Licence,
6 * version 2 (GPLv2). Please refer to the file LICENSE (included with this
7 * distribution) which contains the complete text of the licence.
9 * There are special exceptions to the terms and conditions of the GPL
10 * as it is applied to this software. View the full text of the exception in
11 * file MODSECURITY_LICENSING_EXCEPTION in the directory of this software
14 * If any of the files related to licensing are missing or if you have any
15 * other questions related to licensing please contact Breach Security, Inc.
16 * directly using the email address support@breach.com.
19 #ifndef _MSC_LOGGING_H_
20 #define _MSC_LOGGING_H_
22 #define AUDITLOG_OFF 0
24 #define AUDITLOG_RELEVANT 2
26 #define AUDITLOG_SERIAL 0
27 #define AUDITLOG_CONCURRENT 1
29 #define AUDITLOG_PART_FIRST 'A'
30 #define AUDITLOG_PART_HEADER 'A'
31 #define AUDITLOG_PART_REQUEST_HEADERS 'B'
32 #define AUDITLOG_PART_REQUEST_BODY 'C'
33 #define AUDITLOG_PART_RESPONSE_HEADERS 'D'
34 #define AUDITLOG_PART_RESPONSE_BODY 'E'
35 #define AUDITLOG_PART_A_RESPONSE_HEADERS 'F'
36 #define AUDITLOG_PART_A_RESPONSE_BODY 'G'
37 #define AUDITLOG_PART_TRAILER 'H'
38 #define AUDITLOG_PART_FAKE_REQUEST_BODY 'I'
39 #define AUDITLOG_PART_UPLOADS 'J'
40 #define AUDITLOG_PART_MATCHEDRULES 'K'
41 #define AUDITLOG_PART_LAST 'K'
42 #define AUDITLOG_PART_ENDMARKER 'Z'
44 #include "modsecurity.h"
46 int DSOLOCAL is_valid_parts_specification(char *p);
48 char DSOLOCAL *construct_log_vcombinedus(modsec_rec *msr);
50 char DSOLOCAL *construct_log_vcombinedus_limited(modsec_rec *msr, int _limit, int *was_limited);
52 void DSOLOCAL sec_audit_logger(modsec_rec *msr);