Allow building against OpenSSL without SSLv2 support.
from brad
This commit is contained in:
parent
e7b94a906e
commit
4a3b232786
@ -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?=
|
||||
|
20
security/nessus/core/patches/patch-nessus_nessus_c
Normal file
20
security/nessus/core/patches/patch-nessus_nessus_c
Normal 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();
|
20
security/nessus/core/patches/patch-nessusd_nessusd_c
Normal file
20
security/nessus/core/patches/patch-nessusd_nessusd_c
Normal 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();
|
Loading…
x
Reference in New Issue
Block a user