Fix build when OpenSSL doesn't support SSL2/SSL3
PR: 195796
This commit is contained in:
parent
34ced380c4
commit
e19eca215d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376783
22
security/openvas-client/files/patch-nessus-nessus.c
Normal file
22
security/openvas-client/files/patch-nessus-nessus.c
Normal file
@ -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();
|
Loading…
Reference in New Issue
Block a user