From 5eeca041f8cef99502fd04fc368aaddca3c4c0e8 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 20 Aug 2010 06:05:08 +0000 Subject: [PATCH] Removed references to MD2, as OpenSSL 1.x.x doesn't support it anymore --- CHANGELOG | 3 +++ nse_openssl.cc | 12 ------------ nselib/openssl.luadoc | 5 ----- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index d9047ed7a..2b60f27d3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ # Nmap Changelog ($Id$); -*-text-*- +o [NSE] Removed references to MD2, as OpenSSL 1.x.x doesn't support it anymore + [alexandru] + o [NSE] Added GIOP library and a small script that makes use of it: - giop-info Queries the CORBA naming server for a list of objects [Patrik] diff --git a/nse_openssl.cc b/nse_openssl.cc index 1cc657a8d..eaebe2051 100644 --- a/nse_openssl.cc +++ b/nse_openssl.cc @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -219,16 +218,6 @@ static int l_rand_pseudo_bytes( lua_State *L ) /** rand_pseudo_bytes( number byt return 1; } -static int l_md2(lua_State *L) /** md2(string s) */ -{ - size_t len; - const unsigned char *s = (unsigned char *) luaL_checklstring( L, 1, &len ); - unsigned char digest[16]; - - lua_pushlstring( L, (char *) MD2( s, len, digest ), 16 ); - return 1; -} - static int l_md4(lua_State *L) /** md4(string s) */ { size_t len; @@ -515,7 +504,6 @@ 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 }, - { "md2", l_md2 }, { "md4", l_md4 }, { "md5", l_md5 }, { "sha1", l_sha1 }, diff --git a/nselib/openssl.luadoc b/nselib/openssl.luadoc index 1dea1c438..744d5f629 100644 --- a/nselib/openssl.luadoc +++ b/nselib/openssl.luadoc @@ -112,11 +112,6 @@ function rand_bytes(bytes) -- @return Pseudorandom string. function rand_pseudo_bytes(bytes) ---- Returns the MD2 digest of a string. --- @param message String to digest. --- @return MD2 digest. -function md2(message) - --- Returns the MD4 digest of a string. -- @param message String to digest. -- @return MD4 digest.