mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 14:39:03 +00:00
Removed references to MD2, as OpenSSL 1.x.x doesn't support it anymore
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <openssl/crypto.h>
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/rand.h>
|
||||
#include <openssl/md2.h>
|
||||
#include <openssl/md4.h>
|
||||
#include <openssl/md5.h>
|
||||
#include <openssl/sha.h>
|
||||
@@ -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 },
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user