2008-07-06 11:27:01 +00:00
|
|
|
--- a/sslcls.c
|
|
|
|
+++ b/sslcls.c
|
2006-12-18 17:07:01 +00:00
|
|
|
@@ -35,6 +35,7 @@
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifndef OPENSSL_NO_SSL2
|
|
|
|
SSL_METHOD *sycSSLv2_client_method(void) {
|
|
|
|
SSL_METHOD *result;
|
|
|
|
Debug("SSLv2_client_method()");
|
|
|
|
@@ -50,6 +51,7 @@
|
|
|
|
Debug1("SSLv2_server_method() -> %p", result);
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
SSL_METHOD *sycSSLv3_client_method(void) {
|
|
|
|
SSL_METHOD *result;
|
2008-07-06 11:27:01 +00:00
|
|
|
--- a/xio-openssl.c
|
|
|
|
+++ b/xio-openssl.c
|
|
|
|
@@ -676,9 +676,12 @@
|
2006-12-18 17:07:01 +00:00
|
|
|
|
|
|
|
if (!server) {
|
|
|
|
if (me_str != 0) {
|
|
|
|
+#ifndef OPENSSL_NO_SSL2
|
|
|
|
if (!strcasecmp(me_str, "SSLv2") || !strcasecmp(me_str, "SSL2")) {
|
|
|
|
method = sycSSLv2_client_method();
|
|
|
|
- } else if (!strcasecmp(me_str, "SSLv3") || !strcasecmp(me_str, "SSL3")) {
|
|
|
|
+ } else
|
|
|
|
+#endif
|
|
|
|
+ if (!strcasecmp(me_str, "SSLv3") || !strcasecmp(me_str, "SSL3")) {
|
|
|
|
method = sycSSLv3_client_method();
|
|
|
|
} else if (!strcasecmp(me_str, "SSLv23") || !strcasecmp(me_str, "SSL23") ||
|
|
|
|
!strcasecmp(me_str, "SSL")) {
|
2008-07-06 11:27:01 +00:00
|
|
|
@@ -695,9 +698,12 @@
|
2006-12-18 17:07:01 +00:00
|
|
|
}
|
|
|
|
} else /* server */ {
|
|
|
|
if (me_str != 0) {
|
|
|
|
+#ifndef OPENSSL_NO_SSL2
|
|
|
|
if (!strcasecmp(me_str, "SSLv2") || !strcasecmp(me_str, "SSL2")) {
|
|
|
|
method = sycSSLv2_server_method();
|
|
|
|
- } else if (!strcasecmp(me_str, "SSLv3") || !strcasecmp(me_str, "SSL3")) {
|
|
|
|
+ } else
|
|
|
|
+#endif
|
|
|
|
+ if (!strcasecmp(me_str, "SSLv3") || !strcasecmp(me_str, "SSL3")) {
|
|
|
|
method = sycSSLv3_server_method();
|
|
|
|
} else if (!strcasecmp(me_str, "SSLv23") || !strcasecmp(me_str, "SSL23") ||
|
|
|
|
!strcasecmp(me_str, "SSL")) {
|