/[gentoo-x86]/net-analyzer/nmap/files/nmap-5.21-openssl-1.patch
Gentoo

Contents of /net-analyzer/nmap/files/nmap-5.21-openssl-1.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sun Jul 11 03:32:11 2010 UTC (9 years, 8 months ago) by ssuominen
Branch: MAIN
File MIME type: text/x-diff
Fix building with OpenSSL >= 1.0.0 wrt #326531 by Daniel Black. Revision bump because md2 is dropped.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 http://bugs.gentoo.org/326531
2 http://trac.macports.org/ticket/25593
3
4 --- nse_openssl.cc
5 +++ nse_openssl.cc
6 @@ -8,7 +8,6 @@
7 #include <openssl/crypto.h>
8 #include <openssl/bn.h>
9 #include <openssl/rand.h>
10 -#include <openssl/md2.h>
11 #include <openssl/md4.h>
12 #include <openssl/md5.h>
13 #include <openssl/sha.h>
14 @@ -206,16 +205,6 @@
15 return 1;
16 }
17
18 -static int l_md2(lua_State *L) /** md2(string s) */
19 -{
20 - size_t len;
21 - const unsigned char *s = (unsigned char *) luaL_checklstring( L, 1, &len );
22 - unsigned char digest[16];
23 -
24 - lua_pushlstring( L, (char *) MD2( s, len, digest ), 16 );
25 - return 1;
26 -}
27 -
28 static int l_md4(lua_State *L) /** md4(string s) */
29 {
30 size_t len;
31 @@ -469,7 +458,6 @@
32 { "bignum_mod_exp", l_bignum_mod_exp },
33 { "rand_bytes", l_rand_bytes },
34 { "rand_pseudo_bytes", l_rand_pseudo_bytes },
35 - { "md2", l_md2 },
36 { "md4", l_md4 },
37 { "md5", l_md5 },
38 { "sha1", l_sha1 },

  ViewVC Help
Powered by ViewVC 1.1.20