blob: 7d620256a5b5ef81c7d3ef8d29c40c115ae2a1e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
http://bugs.gentoo.org/326545
--- nasl/nasl_crypto.c
+++ 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)
{
|