ports/security/nmap-devel/files/patch-ncat__ncat_ssl.c
Cy Schubert c89426b1f2 security/nmap-devel: New port
Introduce nmap development port. The development branch includes
prerequisite updates including the pcre2 replacement of pcre.
This port tracks the nmap/nmap github repo.
2024-03-28 13:53:59 -07:00

13 lines
495 B
C

--- ncat/ncat_ssl.c.orig 2022-08-29 17:09:47 UTC
+++ ncat/ncat_ssl.c
@@ -73,7 +73,9 @@
#include <openssl/x509.h>
#include <openssl/x509v3.h>
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined LIBRESSL_VERSION_NUMBER
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && \
+ ((!defined LIBRESSL_VERSION_NUMBER) || \
+ (defined LIBRESSL_VERSION_NUMBER && LIBRESSL_VERSION_NUMBER >= 0x30500000L))
#define HAVE_OPAQUE_STRUCTS 1
#define FUNC_ASN1_STRING_data ASN1_STRING_get0_data
#else