summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2010-11-30 11:04:58 +0000
committerobache <obache>2010-11-30 11:04:58 +0000
commit77aa20809252953e5436bf2330dc93de090379af (patch)
treeeb3c200edcd74c9d638159e8f8723c900cbce139
parent74dc09d4ce81a0230b20f634817a5b43a63676bc (diff)
downloadpkgsrc-77aa20809252953e5436bf2330dc93de090379af.tar.gz
Add an patch for OpenSSL without MD2 support.
PR#43975.
-rw-r--r--net/nmap/distinfo3
-rw-r--r--net/nmap/patches/patch-ak42
2 files changed, 44 insertions, 1 deletions
diff --git a/net/nmap/distinfo b/net/nmap/distinfo
index b9d038b1e2d..1a29b82c2c5 100644
--- a/net/nmap/distinfo
+++ b/net/nmap/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.43 2010/07/22 20:46:29 pettai Exp $
+$NetBSD: distinfo,v 1.44 2010/11/30 11:04:58 obache Exp $
SHA1 (nmap-5.35DC1.tar.bz2) = 5fd786d4bbe6b4fbc0ae625fbb6893b19fbde627
RMD160 (nmap-5.35DC1.tar.bz2) = d0663a669824a38f05e89c14a2ad5fd9932eddcc
@@ -7,3 +7,4 @@ SHA1 (patch-aa) = 61593e0479a79bcb4cce2e88b2e5753fa14bc429
SHA1 (patch-ab) = 22c377e9a340a6e6d7b9a36b63e6ffc47a084b3b
SHA1 (patch-ac) = c22e8f6411b1152a6e7582c90e5ec5bd4c6acaad
SHA1 (patch-aj) = 868440ce24a70c1a747af6d65eed24f20c4bb892
+SHA1 (patch-ak) = ffc530fb2987fadbb4990314947015e8cd26c2c9
diff --git a/net/nmap/patches/patch-ak b/net/nmap/patches/patch-ak
new file mode 100644
index 00000000000..6620a75bc6b
--- /dev/null
+++ b/net/nmap/patches/patch-ak
@@ -0,0 +1,42 @@
+$NetBSD: patch-ak,v 1.1 2010/11/30 11:04:59 obache Exp $
+
+for OpenSSL without MD2
+
+--- nse_openssl.cc.orig 2010-03-28 21:18:02.000000000 +0000
++++ nse_openssl.cc
+@@ -8,7 +8,9 @@
+ #include <openssl/crypto.h>
+ #include <openssl/bn.h>
+ #include <openssl/rand.h>
++#ifndef OPENSSL_NO_MD2
+ #include <openssl/md2.h>
++#endif
+ #include <openssl/md4.h>
+ #include <openssl/md5.h>
+ #include <openssl/sha.h>
+@@ -219,6 +221,7 @@ static int l_rand_pseudo_bytes( lua_Stat
+ return 1;
+ }
+
++#ifndef OPENSSL_NO_MD2
+ static int l_md2(lua_State *L) /** md2(string s) */
+ {
+ size_t len;
+@@ -228,6 +231,7 @@ static int l_md2(lua_State *L) /** m
+ lua_pushlstring( L, (char *) MD2( s, len, digest ), 16 );
+ return 1;
+ }
++#endif
+
+ static int l_md4(lua_State *L) /** md4(string s) */
+ {
+@@ -515,7 +519,9 @@ static const struct luaL_reg openssllib[
+ { "bignum_mod_exp", l_bignum_mod_exp },
+ { "rand_bytes", l_rand_bytes },
+ { "rand_pseudo_bytes", l_rand_pseudo_bytes },
++#ifndef OPENSSL_NO_MD2
+ { "md2", l_md2 },
++#endif
+ { "md4", l_md4 },
+ { "md5", l_md5 },
+ { "sha1", l_sha1 },