Move from PCRE to PCRE2 (#2134)

Move from PCRE to PCRE2. PCRE is EOL and won't receive any security
updates anymore. Convert to PCRE2 by converting any function PCRE2 new
API.

Also update every entry in github workflows and README to point to the
new configure flag. (--with-pcre2)

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi
2023-11-01 14:16:49 +01:00
committed by GitHub
parent 5a2666ce9e
commit d5c9a16a48
9 changed files with 59 additions and 60 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
#ifdef HAVE_PCRE
#ifdef HAVE_PCRE2
#ifndef NDPI_RCE_H
#define NDPI_RCE_H
@@ -8,7 +8,7 @@
#define N_RCE_REGEX 7
/* Compiled regex */
static struct pcre_struct *comp_rx[N_RCE_REGEX];
static struct pcre2_struct *comp_rx[N_RCE_REGEX];
static unsigned int initialized_comp_rx = 0;
@@ -615,4 +615,4 @@ static const char *pwsh_commands[] = {
"-PSConsoleFile"
};
#endif //HAVE_PCRE
#endif //HAVE_PCRE2