summaryrefslogtreecommitdiffstats
path: root/security/nmap/files/patch-ncat_test_test-wildcard.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/nmap/files/patch-ncat_test_test-wildcard.c')
-rw-r--r--security/nmap/files/patch-ncat_test_test-wildcard.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/nmap/files/patch-ncat_test_test-wildcard.c b/security/nmap/files/patch-ncat_test_test-wildcard.c
new file mode 100644
index 0000000..517575d
--- /dev/null
+++ b/security/nmap/files/patch-ncat_test_test-wildcard.c
@@ -0,0 +1,11 @@
+--- ncat/test/test-wildcard.c.orig 2016-08-01 09:34:56 UTC
++++ ncat/test/test-wildcard.c
+@@ -253,7 +253,7 @@ static int set_dNSNames(X509 *cert, cons
+ if (gen_name == NULL)
+ goto stack_err;
+ gen_name->type = GEN_DNS;
+- #if OPENSSL_VERSION_NUMBER < 0x10100000L
++ #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ gen_name->d.dNSName = M_ASN1_IA5STRING_new();
+ #else
+ gen_name->d.dNSName = ASN1_IA5STRING_new();
OpenPOWER on IntegriCloud