mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
OpenSSL: Fix forcing SSLv3 connections
Since ad34a2d5c8
(present in 7.34.0 release) forcing
SSLv3 will always return the error "curl: (35) Unsupported SSL protocol
version" Can be replicated with `curl -I -3 https://www.google.com/`.
This fix simply allows for v3 to be forced.
This commit is contained in:
parent
1f47a77b29
commit
db11750cfa
@ -1551,6 +1551,7 @@ ossl_connect_step1(struct connectdata *conn,
|
|||||||
|
|
||||||
switch(data->set.ssl.version) {
|
switch(data->set.ssl.version) {
|
||||||
case CURL_SSLVERSION_DEFAULT:
|
case CURL_SSLVERSION_DEFAULT:
|
||||||
|
case CURL_SSLVERSION_SSLv3:
|
||||||
ctx_options |= SSL_OP_NO_SSLv2;
|
ctx_options |= SSL_OP_NO_SSLv2;
|
||||||
#ifdef USE_TLS_SRP
|
#ifdef USE_TLS_SRP
|
||||||
if(data->set.ssl.authtype == CURL_TLSAUTH_SRP) {
|
if(data->set.ssl.authtype == CURL_TLSAUTH_SRP) {
|
||||||
|
Loading…
Reference in New Issue
Block a user