Fix build when OpenSSL doesn't support SSL2/SSL3

PR:		195796
This commit is contained in:
Tijl Coosemans 2015-01-11 14:21:40 +00:00
parent 1616911228
commit 231815e7b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376786

View file

@ -0,0 +1,19 @@
--- Library/src/SSL/HTSSL.c.orig 2000-08-03 16:17:20 UTC
+++ Library/src/SSL/HTSSL.c
@@ -187,12 +187,16 @@ PUBLIC BOOL HTSSL_init (void)
/* select the protocol method */
switch (ssl_prot_method) {
+#ifndef OPENSSL_NO_SSL2
case HTSSL_V2:
meth = SSLv2_client_method();
break;
+#endif
+#ifndef OPENSSL_NO_SSL3_METHOD
case HTSSL_V3:
meth = SSLv3_client_method();
break;
+#endif
case HTSSL_V23:
meth = SSLv23_client_method();
break;