diff options
Diffstat (limited to 'net-analyzer/libnasl/files/libnasl-2.2.9-openssl-1.patch')
-rw-r--r-- | net-analyzer/libnasl/files/libnasl-2.2.9-openssl-1.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-analyzer/libnasl/files/libnasl-2.2.9-openssl-1.patch b/net-analyzer/libnasl/files/libnasl-2.2.9-openssl-1.patch new file mode 100644 index 000000000000..fc3b38be4c2e --- /dev/null +++ b/net-analyzer/libnasl/files/libnasl-2.2.9-openssl-1.patch @@ -0,0 +1,45 @@ +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) + { |