$OpenBSD: patch-nasl_nasl_crypto_c,v 1.1 2010/10/12 22:05:21 robert Exp $
--- nasl/nasl_crypto.c.orig	Tue Oct 12 20:52:08 2010
+++ nasl/nasl_crypto.c	Tue Oct 12 20:54:14 2010
@@ -22,7 +22,9 @@
   */
 #include <includes.h>
 #ifdef HAVE_SSL
-#include <openssl/md2.h>
+#  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 @@ tree_cell * nasl_md2(lex_ctxt * lexic)
  retc->size = MD2_DIGEST_LENGTH;
  return retc;
 }
+#endif
 
 tree_cell * nasl_md4(lex_ctxt * lexic)
 {
@@ -193,10 +197,12 @@ static tree_cell * nasl_hmac(lex_ctxt * lexic, const E
 }
 
 
+#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)
