Fix Curl compile on Debian. Stolen from Curl 7.21.5

This commit is contained in:
Marc Olivier Chouinard
2011-12-16 08:02:48 -05:00
parent 442f4d2522
commit e30b03ab78
3 changed files with 11 additions and 2 deletions

View File

@@ -1190,8 +1190,13 @@ Curl_ossl_connect_step1(struct connectdata *conn,
req_method = TLSv1_client_method();
break;
case CURL_SSLVERSION_SSLv2:
#ifdef OPENSSL_NO_SSL2
failf(data, "OpenSSL was built without SSLv2 support");
return CURLE_NOT_BUILT_IN;
#else
req_method = SSLv2_client_method();
break;
#endif
case CURL_SSLVERSION_SSLv3:
req_method = SSLv3_client_method();
break;