Skip to content

Commit

Permalink
Allow openSSL without SSL2 to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
crrodriguez committed Apr 9, 2011
1 parent 2064ea9 commit 26b487a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ssluse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,10 @@ ossl_connect_step1(struct connectdata *conn,
#ifdef USE_TLS_SRP
if (data->set.ssl.authtype == CURL_TLSAUTH_SRP)
return CURLE_SSL_CONNECT_ERROR;
#endif
#ifdef OPENSSL_NO_SSL2
failf(data, "openSSL was compiled without SSLv2 support");
return CURLE_SSL_CONNECT_ERROR;
#endif
req_method = SSLv2_client_method();
use_sni(FALSE);
Expand Down

0 comments on commit 26b487a

Please sign in to comment.