"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "apache2/msc_pcre.h" between
modsecurity-2.9.6.tar.gz and modsecurity-2.9.7.tar.gz

About: ModSecurity is an intrusion detection and prevention module (web application firewall) for the Apache (and Nginx) Web servers.

msc_pcre.h  (modsecurity-2.9.6):msc_pcre.h  (modsecurity-2.9.7)
/* /*
* ModSecurity for Apache 2.x, http://www.modsecurity.org/ * ModSecurity for Apache 2.x, http://www.modsecurity.org/
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/) * Copyright (c) 2004-2022 Trustwave Holdings, Inc. (http://www.trustwave.com/)
* *
* You may not use this file except in compliance with * You may not use this file except in compliance with
* the License.  You may obtain a copy of the License at * the License.  You may obtain a copy of the License at
* *
*     http://www.apache.org/licenses/LICENSE-2.0 *     http://www.apache.org/licenses/LICENSE-2.0
* *
* If any of the files related to licensing are missing or if you have any * If any of the files related to licensing are missing or if you have any
* other questions related to licensing please contact Trustwave Holdings, Inc. * other questions related to licensing please contact Trustwave Holdings, Inc.
* directly using the email address security@modsecurity.org. * directly using the email address security@modsecurity.org.
*/ */
#ifndef _MSC_PCRE_H_ #ifndef _MSC_PCRE_H_
#define _MSC_PCRE_H_ #define _MSC_PCRE_H_
typedef struct msc_regex_t msc_regex_t; typedef struct msc_regex_t msc_regex_t;
#ifdef WITH_PCRE2
#define PCRE2_CODE_UNIT_WIDTH 8
#include "pcre2.h"
#else
#include "pcre.h" #include "pcre.h"
#endif
#ifndef WITH_PCRE2
#ifndef PCRE_ERROR_MATCHLIMIT #ifndef PCRE_ERROR_MATCHLIMIT
/* Define for compile, but not valid in this version of PCRE. */ /* Define for compile, but not valid in this version of PCRE. */
#define PCRE_ERROR_MATCHLIMIT (-8) #define PCRE_ERROR_MATCHLIMIT (-8)
#endif /* PCRE_ERROR_MATCHLIMIT */ #endif /* PCRE_ERROR_MATCHLIMIT */
#ifndef PCRE_ERROR_RECURSIONLIMIT #ifndef PCRE_ERROR_RECURSIONLIMIT
/* Define for compile, but not valid in this version of PCRE. */ /* Define for compile, but not valid in this version of PCRE. */
#define PCRE_ERROR_RECURSIONLIMIT (-21) #define PCRE_ERROR_RECURSIONLIMIT (-21)
#endif /* PCRE_ERROR_RECURSIONLIMIT */ #endif /* PCRE_ERROR_RECURSIONLIMIT */
#endif
#include "apr_general.h" #include "apr_general.h"
#include "modsecurity.h" #include "modsecurity.h"
struct msc_regex_t { struct msc_regex_t {
#ifdef WITH_PCRE2
pcre2_code *re;
pcre2_match_context *match_context;
#ifdef WITH_PCRE_JIT
int jit_compile_rc;
#endif
#else
void *re; void *re;
void *pe; void *pe;
#endif
const char *pattern; const char *pattern;
}; };
void DSOLOCAL *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int option s, void DSOLOCAL *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int option s,
const char **_errptr, int *_erroffset, const char **_errptr, int *_erroffset,
int match_limit, int match_limit_recursion); int match_limit, int match_limit_recursion);
void DSOLOCAL *msc_pregcomp(apr_pool_t *pool, const char *pattern, int options, void DSOLOCAL *msc_pregcomp(apr_pool_t *pool, const char *pattern, int options,
const char **_errptr, int *_erroffset); const char **_errptr, int *_erroffset);
 End of changes. 6 change blocks. 
1 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)