2
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
3
* Copyright (c) 2004-2010 Trustwave Holdings, Inc. (http://www.trustwave.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 Trustwave Holdings, Inc.
16
* directly using the email address support@trustwave.com.
22
typedef struct msc_regex_t msc_regex_t;
26
#ifndef PCRE_ERROR_MATCHLIMIT
27
/* Define for compile, but not valid in this version of PCRE. */
28
#define PCRE_ERROR_MATCHLIMIT (-8)
29
#endif /* PCRE_ERROR_MATCHLIMIT */
31
#ifndef PCRE_ERROR_RECURSIONLIMIT
32
/* Define for compile, but not valid in this version of PCRE. */
33
#define PCRE_ERROR_RECURSIONLIMIT (-21)
34
#endif /* PCRE_ERROR_RECURSIONLIMIT */
36
#include "apr_general.h"
37
#include "modsecurity.h"
45
apr_status_t DSOLOCAL msc_pcre_cleanup(msc_regex_t *regex);
47
void DSOLOCAL *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int options,
48
const char **_errptr, int *_erroffset,
49
int match_limit, int match_limit_recursion);
51
void DSOLOCAL *msc_pregcomp(apr_pool_t *pool, const char *pattern, int options,
52
const char **_errptr, int *_erroffset);
54
int DSOLOCAL msc_regexec_ex(msc_regex_t *regex, const char *s,
55
unsigned int slen, int startoffset, int options,
56
int *ovector, int ovecsize, char **error_msg);
58
int DSOLOCAL msc_regexec_capture(msc_regex_t *regex, const char *s,
59
unsigned int slen, int *ovector,
60
int ovecsize, char **error_msg);
62
int DSOLOCAL msc_regexec(msc_regex_t *regex, const char *s,
63
unsigned int slen, char **error_msg);
65
int DSOLOCAL msc_fullinfo(msc_regex_t *regex, int what, void *where);