summaryrefslogtreecommitdiff
path: root/www/nginx-devel/files/extra-patch-naxsi_runtime.c
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2022-07-10 18:19:21 -0400
committerSergey A. Osokin <osa@FreeBSD.org>2022-07-10 18:19:21 -0400
commit18ccca0d8adbc046fbf1bb70f4eee23aa537a5e9 (patch)
tree7dc8cc329ad1c22b118da191a487270b69db1321 /www/nginx-devel/files/extra-patch-naxsi_runtime.c
parentwww/nginx-devel: update third-party vod module 1.29 -> 1.30 (diff)
www/nginx-devel: update third-party naxsi module to its recent commit
Update third-party naxsi module to 29793dc, it's compatible with nginx 1.23.0 now, also now it's possible to build the module with PCRE2 support. Bump PORTREVISION.
Diffstat (limited to 'www/nginx-devel/files/extra-patch-naxsi_runtime.c')
-rw-r--r--www/nginx-devel/files/extra-patch-naxsi_runtime.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/nginx-devel/files/extra-patch-naxsi_runtime.c b/www/nginx-devel/files/extra-patch-naxsi_runtime.c
new file mode 100644
index 000000000000..c08dd1f92540
--- /dev/null
+++ b/www/nginx-devel/files/extra-patch-naxsi_runtime.c
@@ -0,0 +1,23 @@
+--- ../naxsi-29793dc/naxsi_src/naxsi_runtime.c.orig 2022-07-10 18:11:39.685243000 -0400
++++ ../naxsi-29793dc/naxsi_src/naxsi_runtime.c 2022-07-10 18:14:53.935554000 -0400
+@@ -9,6 +9,11 @@
+ #include "naxsi_macros.h"
+ #include "naxsi_net.h"
+
++#if (NGX_PCRE2)
++#include <pcre2.h>
++#else
++#include <pcre.h>
++#endif
+ /* used to store locations during the configuration time.
+ then, accessed by the hashtable building feature during "init" time. */
+
+@@ -181,7 +186,7 @@
+ unsigned char*
+ ngx_utf8_check(ngx_str_t* str);
+
+-#if defined nginx_version && (nginx_version >= 1021005)
++#if (NGX_PCRE2)
+ /*
+ * variables to use pcre2
+ */