You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/libnasl/files/libnasl-2.2.9-openssl-1.patch

46 lines
844 B

http://bugs.gentoo.org/326545
--- a/nasl/nasl_crypto.c
+++ b/nasl/nasl_crypto.c
@@ -22,7 +22,9 @@
*/
#include <includes.h>
#ifdef HAVE_SSL
+#ifdef HAVE_OPENSSL_MD2_H
#include <openssl/md2.h>
+#endif
#include <openssl/md4.h>
#include <openssl/md5.h>
#include <openssl/ripemd.h>
@@ -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)
{