Blame apache2/msc_pcre.h

Packit Service 384592
/*
Packit Service 384592
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
Packit Service 384592
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/)
Packit Service 384592
*
Packit Service 384592
* You may not use this file except in compliance with
Packit Service 384592
* the License.  You may obtain a copy of the License at
Packit Service 384592
*
Packit Service 384592
*     http://www.apache.org/licenses/LICENSE-2.0
Packit Service 384592
*
Packit Service 384592
* If any of the files related to licensing are missing or if you have any
Packit Service 384592
* other questions related to licensing please contact Trustwave Holdings, Inc.
Packit Service 384592
* directly using the email address security@modsecurity.org.
Packit Service 384592
*/
Packit Service 384592
Packit Service 384592
#ifndef _MSC_PCRE_H_
Packit Service 384592
#define _MSC_PCRE_H_
Packit Service 384592
Packit Service 384592
typedef struct msc_regex_t msc_regex_t;
Packit Service 384592
Packit Service 384592
#include "pcre.h"
Packit Service 384592
Packit Service 384592
#ifndef PCRE_ERROR_MATCHLIMIT
Packit Service 384592
/* Define for compile, but not valid in this version of PCRE. */
Packit Service 384592
#define PCRE_ERROR_MATCHLIMIT (-8)
Packit Service 384592
#endif /* PCRE_ERROR_MATCHLIMIT */
Packit Service 384592
Packit Service 384592
#ifndef PCRE_ERROR_RECURSIONLIMIT
Packit Service 384592
/* Define for compile, but not valid in this version of PCRE. */
Packit Service 384592
#define PCRE_ERROR_RECURSIONLIMIT (-21)
Packit Service 384592
#endif /* PCRE_ERROR_RECURSIONLIMIT */
Packit Service 384592
Packit Service 384592
#include "apr_general.h"
Packit Service 384592
#include "modsecurity.h"
Packit Service 384592
Packit Service 384592
struct msc_regex_t {
Packit Service 384592
    void            *re;
Packit Service 384592
    void            *pe;
Packit Service 384592
    const char      *pattern;
Packit Service 384592
};
Packit Service 384592
Packit Service 384592
void DSOLOCAL *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int options,
Packit Service 384592
                               const char **_errptr, int *_erroffset,
Packit Service 384592
                               int match_limit, int match_limit_recursion);
Packit Service 384592
Packit Service 384592
void DSOLOCAL *msc_pregcomp(apr_pool_t *pool, const char *pattern, int options,
Packit Service 384592
                            const char **_errptr, int *_erroffset);
Packit Service 384592
Packit Service 384592
int DSOLOCAL msc_regexec_ex(msc_regex_t *regex, const char *s,
Packit Service 384592
                            unsigned int slen, int startoffset, int options,
Packit Service 384592
                            int *ovector, int ovecsize, char **error_msg);
Packit Service 384592
Packit Service 384592
int DSOLOCAL msc_regexec_capture(msc_regex_t *regex, const char *s,
Packit Service 384592
                                 unsigned int slen, int *ovector,
Packit Service 384592
                                 int ovecsize, char **error_msg);
Packit Service 384592
Packit Service 384592
int DSOLOCAL msc_regexec(msc_regex_t *regex, const char *s,
Packit Service 384592
                         unsigned int slen, char **error_msg);
Packit Service 384592
Packit Service 384592
int DSOLOCAL msc_fullinfo(msc_regex_t *regex, int what, void *where);
Packit Service 384592
Packit Service 384592
#endif