Allow building against OpenSSL without SSLv2 support.

from brad
This commit is contained in:
jasper 2012-06-29 08:33:20 +00:00
parent e7b94a906e
commit 4a3b232786
3 changed files with 42 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.30 2011/11/04 08:43:32 jasper Exp $
# $OpenBSD: Makefile,v 1.31 2012/06/29 08:33:20 jasper Exp $
COMMENT= network security scanner
DISTNAME= nessus-core-${V}
REVISION= 10
REVISION= 11
FLAVORS= no_x11
FLAVOR?=

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-nessus_nessus_c,v 1.1 2012/06/29 08:33:20 jasper Exp $
Allow building against OpenSSL without SSLv2 support.
--- nessus/nessus.c.orig Fri Jun 29 03:40:09 2012
+++ nessus/nessus.c Fri Jun 29 03:41:43 2012
@@ -438,9 +438,12 @@ Please launch nessus-mkrand(1) first !");
}
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
+ if (strcasecmp(ssl_ver, "SSLv3") == 0)
ssl_mt = SSLv3_client_method();
else if (strcasecmp(ssl_ver, "SSLv23") == 0)
ssl_mt = SSLv23_client_method();

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-nessusd_nessusd_c,v 1.1 2012/06/29 08:33:20 jasper Exp $
Allow building against OpenSSL without SSLv2 support.
--- nessusd/nessusd.c.orig Fri Jun 29 03:47:02 2012
+++ nessusd/nessusd.c Fri Jun 29 03:47:24 2012
@@ -622,9 +622,12 @@ main_loop()
if (ssl_mt == NULL)
{
+#ifndef OPENSSL_NO_SSL2
if (strcasecmp(ssl_ver, "SSLv2") == 0)
ssl_mt = SSLv2_server_method();
- else if (strcasecmp(ssl_ver, "SSLv3") == 0)
+ else
+#endif
+ if (strcasecmp(ssl_ver, "SSLv3") == 0)
ssl_mt = SSLv3_server_method();
else if (strcasecmp(ssl_ver, "SSLv23") == 0)
ssl_mt = SSLv23_server_method();