36 lines
1010 B
Diff
36 lines
1010 B
Diff
--- nse_openssl.cc.orig 2009-03-10 16:56:10.000000000 +1100
|
|
+++ nse_openssl.cc 2010-07-09 07:36:47.000000000 +1000
|
|
@@ -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>
|
|
@@ -206,16 +205,6 @@ static int l_rand_pseudo_bytes( lua_Stat
|
|
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;
|
|
@@ -469,7 +458,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 },
|