From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 21 10:30:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 172BD8AA for ; Tue, 21 May 2013 10:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E3786772 for ; Tue, 21 May 2013 10:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4LAU1Np076932 for ; Tue, 21 May 2013 10:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4LAU12k076931; Tue, 21 May 2013 10:30:01 GMT (envelope-from gnats) Date: Tue, 21 May 2013 10:30:01 GMT Message-Id: <201305211030.r4LAU12k076931@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: kit Subject: Re: ports/175868: security/nessus-libnasl: nasl_crypto.c:25:10: fatal error: 'openssl/md2.h' file not found X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: kit List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 May 2013 10:30:02 -0000 The following reply was made to PR ports/175868; it has been noted by GNATS. From: kit To: bug-followup@FreeBSD.org, andy@neu.net, edwin@FreeBSD.org Cc: Subject: Re: ports/175868: security/nessus-libnasl: nasl_crypto.c:25:10: fatal error: 'openssl/md2.h' file not found Date: Tue, 21 May 2013 18:23:12 +0800 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=big5 Content-Disposition: inline patch to fix compilation when md2 does not exist. kit --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=big5 Content-Disposition: attachment; filename=patch-zzz-nomd2 --- 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 #ifdef HAVE_SSL +#ifdef HAVE_OPENSSL_MD2_H #include +#endif #include #include #include @@ -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 * ); --wRRV7LY7NUeQGEoC--