http://bugs.gentoo.org/326545 --- a/nasl/nasl_crypto.c +++ b/nasl/nasl_crypto.c @@ -22,7 +22,9 @@ */ #include #ifdef HAVE_SSL +#ifdef HAVE_OPENSSL_MD2_H #include +#endif #include #include #include @@ -45,6 +47,7 @@ /*-------------------[ Std. HASH ]-------------------------------------*/ +#ifdef HAVE_OPENSSL_MD2_H tree_cell * nasl_md2(lex_ctxt * lexic) { char * data = get_str_var_by_num(lexic, 0); @@ -63,6 +66,7 @@ retc->size = MD2_DIGEST_LENGTH; return retc; } +#endif tree_cell * nasl_md4(lex_ctxt * lexic) { @@ -192,12 +196,12 @@ return retc; } - +#ifdef HAVE_OPENSSL_MD2_H tree_cell * nasl_hmac_md2(lex_ctxt * lexic) { return nasl_hmac(lexic, EVP_md2()); } - +#endif tree_cell * nasl_hmac_md5(lex_ctxt * lexic) {