aports/testing/nginx-naxsi/musl-crypt-fix.patch
Stuart Cardall 7596de12a5 testing/nginx-naxsi: new aport
NGINX with naxsi WAF support https://github.com/nbs-system/naxsi

Built with the same modules as Debian + SysGuard from Tengine.

Nginx patched to anonymise server strings.

With the WAF & SysGuard enabled nginx-naxsi benchmarked @ approx
600 connections / second (the same as the standard Alpine nginx pkg).
With the WAF disabled 640 connections / second (as the mail modules
are removed as per the naxsi author's recommendation).
2014-09-18 09:47:11 +00:00

14 lines
317 B
Diff

--- nginx-1.4.4/src/os/unix/ngx_user.c.orig
+++ nginx-1.4.4/src/os/unix/ngx_user.c
@@ -31,8 +31,10 @@
struct crypt_data cd;
cd.initialized = 0;
+#ifdef __GLIBC__
/* work around the glibc bug */
cd.current_salt[0] = ~salt[0];
+#endif
value = crypt_r((char *) key, (char *) salt, &cd);