mirror of
https://github.com/moparisthebest/curl
synced 2025-01-08 12:28:06 -05:00
SSL: Fixed OpenSSL builds prior to v1.0.1
Commit ad34a2d5c8
relies on definitions that are only present in
OpenSSL v1.0.1 and up. This quick fix allows the builds that use
older versions of OpenSSL to continue building.
This commit is contained in:
parent
4d49ffe165
commit
87861c9b0e
@ -1566,20 +1566,28 @@ ossl_connect_step1(struct connectdata *conn,
|
||||
case CURL_SSLVERSION_TLSv1_0:
|
||||
ctx_options |= SSL_OP_NO_SSLv2;
|
||||
ctx_options |= SSL_OP_NO_SSLv3;
|
||||
#if defined(SSL_OP_NO_TLSv1_1)
|
||||
ctx_options |= SSL_OP_NO_TLSv1_1;
|
||||
#endif
|
||||
#if defined(SSL_OP_NO_TLSv1_2)
|
||||
ctx_options |= SSL_OP_NO_TLSv1_2;
|
||||
#endif
|
||||
break;
|
||||
case CURL_SSLVERSION_TLSv1_1:
|
||||
ctx_options |= SSL_OP_NO_SSLv2;
|
||||
ctx_options |= SSL_OP_NO_SSLv3;
|
||||
ctx_options |= SSL_OP_NO_TLSv1;
|
||||
#if defined(SSL_OP_NO_TLSv1_1)
|
||||
ctx_options |= SSL_OP_NO_TLSv1_2;
|
||||
#endif
|
||||
break;
|
||||
case CURL_SSLVERSION_TLSv1_2:
|
||||
ctx_options |= SSL_OP_NO_SSLv2;
|
||||
ctx_options |= SSL_OP_NO_SSLv3;
|
||||
ctx_options |= SSL_OP_NO_TLSv1;
|
||||
#if defined(SSL_OP_NO_TLSv1_1)
|
||||
ctx_options |= SSL_OP_NO_TLSv1_1;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user