Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / msc_logging.h
1 /*
2  * ModSecurity for Apache 2.x, http://www.modsecurity.org/
3  * Copyright (c) 2004-2009 Breach Security, Inc. (http://www.breach.com/)
4  *
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.
8  *
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
12  * distribution.
13  *
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.
17  *
18  */
19 #ifndef _MSC_LOGGING_H_
20 #define _MSC_LOGGING_H_
21
22 #define AUDITLOG_OFF                         0
23 #define AUDITLOG_ON                          1
24 #define AUDITLOG_RELEVANT                    2
25
26 #define AUDITLOG_SERIAL                      0
27 #define AUDITLOG_CONCURRENT                  1
28
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'
43
44 #include "modsecurity.h"
45
46 int DSOLOCAL is_valid_parts_specification(char *p);
47
48 char DSOLOCAL *construct_log_vcombinedus(modsec_rec *msr);
49
50 char DSOLOCAL *construct_log_vcombinedus_limited(modsec_rec *msr, int _limit, int *was_limited);
51
52 void DSOLOCAL sec_audit_logger(modsec_rec *msr);
53
54 #endif