summaryrefslogtreecommitdiff
path: root/security/nmap-devel/files/patch-nse__openssl.cc
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-03-28 13:23:34 -0700
committerCy Schubert <cy@FreeBSD.org>2024-03-28 13:53:59 -0700
commitc89426b1f238e3ad79444ac311cd9d11fd86ac5f (patch)
tree68b050a6f59a21c82903eed91105fc1091e4df9a /security/nmap-devel/files/patch-nse__openssl.cc
parentsecurity/nmap: Use internal pcre (diff)
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.
Diffstat (limited to 'security/nmap-devel/files/patch-nse__openssl.cc')
-rw-r--r--security/nmap-devel/files/patch-nse__openssl.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/nmap-devel/files/patch-nse__openssl.cc b/security/nmap-devel/files/patch-nse__openssl.cc
new file mode 100644
index 000000000000..43474fefa8b6
--- /dev/null
+++ b/security/nmap-devel/files/patch-nse__openssl.cc
@@ -0,0 +1,13 @@
+--- nse_openssl.cc.orig 2022-09-01 22:22:29 UTC
++++ nse_openssl.cc
+@@ -13,7 +13,9 @@
+ #include <openssl/hmac.h>
+ #include <openssl/rand.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_EVP_MD_CTX_init EVP_MD_CTX_reset
+ #define FUNC_EVP_MD_CTX_cleanup EVP_MD_CTX_reset