Date: Sun, 11 Jan 2015 13:54:43 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r376783 - head/security/openvas-client/files Message-ID: <201501111354.t0BDshEr040168@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tijl Date: Sun Jan 11 13:54:42 2015 New Revision: 376783 URL: https://svnweb.freebsd.org/changeset/ports/376783 QAT: https://qat.redports.org/buildarchive/r376783/ Log: Fix build when OpenSSL doesn't support SSL2/SSL3 PR: 195796 Added: head/security/openvas-client/files/ head/security/openvas-client/files/patch-nessus-nessus.c (contents, props changed) Added: head/security/openvas-client/files/patch-nessus-nessus.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/openvas-client/files/patch-nessus-nessus.c Sun Jan 11 13:54:42 2015 (r376783) @@ -0,0 +1,22 @@ +--- nessus/nessus.c.orig 2009-06-05 07:12:11 UTC ++++ nessus/nessus.c +@@ -481,11 +481,17 @@ Please launch openvasclient-mkrand(1) fi + } + if (ssl_mt == NULL) + { ++#ifndef OPENSSL_NO_SSL2 + if (strcasecmp(ssl_ver, "SSLv2") == 0) + ssl_mt = SSLv2_client_method(); +- else if (strcasecmp(ssl_ver, "SSLv3") == 0) ++ else ++#endif ++#ifndef OPENSSL_NO_SSL3_METHOD ++ if (strcasecmp(ssl_ver, "SSLv3") == 0) + ssl_mt = SSLv3_client_method(); +- else if (strcasecmp(ssl_ver, "SSLv23") == 0) ++ else ++#endif ++ if (strcasecmp(ssl_ver, "SSLv23") == 0) + ssl_mt = SSLv23_client_method(); + else if (strcasecmp(ssl_ver, "TLSv1") == 0) + ssl_mt = TLSv1_client_method();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501111354.t0BDshEr040168>