aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbyronhe <lh2008999@gmail.com>2015-04-21 15:08:08 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-04-21 15:25:21 -0400
commit6088fbce06ea32ef86a999092e36415a550d140a (patch)
treea0f5ca442f994a8c8cd6bd5a97d92f8d81123c3d /lib
parentcf2d21d86f3b3d42cd1ccc8e3096f82825d3e781 (diff)
openssl: add OPENSSL_NO_SSL3_METHOD check
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/openssl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 300d7e2e6..a5bd74ff1 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -1750,6 +1750,10 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex)
break;
#endif
case CURL_SSLVERSION_SSLv3:
+#ifdef OPENSSL_NO_SSL3_METHOD
+ failf(data, "OpenSSL was built without SSLv3 support");
+ return CURLE_NOT_BUILT_IN;
+#else
#ifdef USE_TLS_SRP
if(data->set.ssl.authtype == CURL_TLSAUTH_SRP)
return CURLE_SSL_CONNECT_ERROR;
@@ -1757,6 +1761,7 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex)
req_method = SSLv3_client_method();
use_sni(FALSE);
break;
+#endif
}
if(connssl->ctx)