Ticket #42156: patch-md2.diff
File patch-md2.diff, 905 bytes (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
nasl/nasl_crypto.c
old new 22 22 */ 23 23 #include <includes.h> 24 24 #ifdef HAVE_SSL 25 #ifdef HAVE_OPENSSL_MD2_H 25 26 #include <openssl/md2.h> 27 #endif 26 28 #include <openssl/md4.h> 27 29 #include <openssl/md5.h> 28 30 #include <openssl/ripemd.h> … … 45 47 46 48 47 49 /*-------------------[ Std. HASH ]-------------------------------------*/ 50 #ifdef HAVE_OPENSSL_MD2_H 48 51 tree_cell * nasl_md2(lex_ctxt * lexic) 49 52 { 50 53 char * data = get_str_var_by_num(lexic, 0); … … tree_cell * nasl_md2(lex_ctxt * lexic) 63 66 retc->size = MD2_DIGEST_LENGTH; 64 67 return retc; 65 68 } 69 #endif 66 70 67 71 tree_cell * nasl_md4(lex_ctxt * lexic) 68 72 { … … static tree_cell * nasl_hmac(lex_ctxt * lexic, const EVP_MD * evp_md) 193 197 } 194 198 195 199 200 #ifdef HAVE_OPENSSL_MD2_H 196 201 tree_cell * nasl_hmac_md2(lex_ctxt * lexic) 197 202 { 198 203 return nasl_hmac(lexic, EVP_md2()); 199 204 } 205 #endif 200 206 201 207 202 208 tree_cell * nasl_hmac_md5(lex_ctxt * lexic)