Date: Wed, 23 Oct 2013 06:20:01 GMT From: "Schweigert, Udo" <Udo.Schweigert@siemens.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/175868: security/nessus-libnasl: nasl_crypto.c:25:10: fatal error: 'openssl/md2.h' file not found Message-ID: <201310230620.r9N6K1iS031785@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/175868; it has been noted by GNATS. From: "Schweigert, Udo" <Udo.Schweigert@siemens.com> To: "bug-followup@freebsd.org" <bug-followup@freebsd.org> Cc: Udo Schweigert <Udo.Schweigert@siemens.com> Subject: Re: ports/175868: security/nessus-libnasl: nasl_crypto.c:25:10: fatal error: 'openssl/md2.h' file not found Date: Wed, 23 Oct 2013 08:12:19 +0200 Sorry for the long delay (I had no recent current installation for testing, now with 10.0-BETA I had a chance to do that). Please apply the following patch. I will also submit a patch for the related nessus port, which fixes build on FreeBSD-8.x. Note: file to be added to the repo: files/patch-nomd2 Udo diff -ru /usr/ports/security/nessus-libnasl/Makefile nessus-libnasl/Makefile --- /usr/ports/security/nessus-libnasl/Makefile 2013-09-21 06:10:33.000000000 +0200 +++ nessus-libnasl/Makefile 2013-10-23 07:36:15.471347000 +0200 @@ -15,8 +15,6 @@ MAINTAINER= udo.schweigert@siemens.com COMMENT= Nessus Attack Scripting Language -BROKEN= Does not build - LIB_DEPENDS= nessus.4:${PORTSDIR}/security/nessus-libraries DIST_SUBDIR= nessus diff -ru /usr/ports/security/nessus-libnasl/files/patch-nomd2 nessus-libnasl/files/patch-nomd2 --- /usr/ports/security/nessus-libnasl/files/patch-nomd2 1970-01-01 01:00:00.000000000 +0100 +++ nessus-libnasl/files/patch-nomd2 2013-10-23 07:35:58.193290000 +0200 @@ -0,0 +1,62 @@ +--- nasl/nasl_crypto.c.orig 2005-07-07 08:14:26.000000000 +0800 ++++ nasl/nasl_crypto.c 2013-05-21 18:09:58.000000000 +0800 +@@ -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,11 +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) +--- nasl/nasl_crypto.h.orig 2005-02-11 00:03:52.000000000 +0800 ++++ nasl/nasl_crypto.h 2013-05-21 18:11:23.000000000 +0800 +@@ -2,13 +2,17 @@ + #define NASL_CRYPTO_H + + #ifdef HAVE_SSL ++#ifdef HAVE_OPENSSL_MD2_H + tree_cell * nasl_md2(lex_ctxt *); ++#endif + tree_cell * nasl_md4(lex_ctxt *); + tree_cell * nasl_md5(lex_ctxt *); + tree_cell * nasl_sha(lex_ctxt *); + tree_cell * nasl_sha1(lex_ctxt *); + tree_cell * nasl_ripemd160(lex_ctxt *); ++#ifdef HAVE_OPENSSL_MD2_H + tree_cell * nasl_hmac_md2(lex_ctxt * ); ++#endif + tree_cell * nasl_hmac_md5(lex_ctxt * ); + tree_cell * nasl_hmac_sha(lex_ctxt *); + tree_cell * nasl_hmac_sha1(lex_ctxt * );
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310230620.r9N6K1iS031785>