ports/www/mod_gnutls/files/patch-src_gnutls__sni.c
Dima Panov 50f24dd9de www/mod_gnutls: update to 0.12.0 (+)
Major change is three fixes that make mod_gnutls compatible with the
Let's Encrypt OCSP responder for OCSP stapling.

With hat:	ports-secteam
2022-09-03 18:57:30 +03:00

15 lines
314 B
C

--- src/gnutls_sni.c.orig 2019-01-28 19:50:38 UTC
+++ src/gnutls_sni.c
@@ -18,7 +18,12 @@
#include <apr_lib.h>
#include <apr_strings.h>
+#if defined(__FreeBSD__)
+#include <sys/endian.h>
+#define bswap_16(x) bswap16(x)
+#else
#include <byteswap.h>
+#endif
#include <gnutls/gnutls.h>
#include <inttypes.h>