Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
nmap
no-md2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File no-md2.patch of Package nmap
Index: nmap-5.00/nse_openssl.cc =================================================================== --- nmap-5.00.orig/nse_openssl.cc +++ nmap-5.00/nse_openssl.cc @@ -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> @@ -208,12 +207,7 @@ static int l_rand_pseudo_bytes( lua_Stat 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; + return luaL_error (L, "'md2' no longer supported as hash algorithm due to being insecure"); } static int l_md4(lua_State *L) /** md4(string s) */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor