mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
nail: unbreak compilation
disabling SSLv2 and SSLv3 caused nail to break, fixed this some of our snapshot builders don't have CVS, switch to Debian as source Signed-off-by: Steven Barth <steven@midlink.org>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
--- a/openssl.c
|
||||
+++ b/openssl.c
|
||||
@@ -216,9 +216,12 @@ ssl_select_method(const char *uhp)
|
||||
|
||||
cp = ssl_method_string(uhp);
|
||||
if (cp != NULL) {
|
||||
+#ifndef OPENSSL_NO_SSL2
|
||||
if (equal(cp, "ssl2"))
|
||||
method = SSLv2_client_method();
|
||||
- else if (equal(cp, "ssl3"))
|
||||
+ else
|
||||
+#endif
|
||||
+ if (equal(cp, "ssl3"))
|
||||
method = SSLv3_client_method();
|
||||
else if (equal(cp, "tls1"))
|
||||
method = TLSv1_client_method();
|
||||
Reference in New Issue
Block a user