openssl: allow TLS 1.3 by default
Reported-by: Andreas Olsson Fixes #2692 Closes #2693
This commit is contained in:
Родитель
24cb114c53
Коммит
08c845cfdb
|
@ -8,5 +8,5 @@ Requires: TLS
|
||||||
See-also: http1.1 http2
|
See-also: http1.1 http2
|
||||||
Help: Use TLSv1.0 or greater
|
Help: Use TLSv1.0 or greater
|
||||||
---
|
---
|
||||||
Tells curl to use TLS version 1.x when negotiating with a remote TLS
|
Tells curl to use at least TLS version 1.x when negotiating with a remote TLS
|
||||||
server. That means TLS version 1.0, 1.1 or 1.2.
|
server. That means TLS version 1.0 or higher
|
||||||
|
|
|
@ -2130,12 +2130,12 @@ set_ssl_version_min_max(long *ctx_options, struct connectdata *conn,
|
||||||
#endif
|
#endif
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case CURL_SSLVERSION_MAX_TLSv1_2:
|
case CURL_SSLVERSION_MAX_TLSv1_2:
|
||||||
case CURL_SSLVERSION_MAX_DEFAULT:
|
|
||||||
#ifdef TLS1_3_VERSION
|
#ifdef TLS1_3_VERSION
|
||||||
*ctx_options |= SSL_OP_NO_TLSv1_3;
|
*ctx_options |= SSL_OP_NO_TLSv1_3;
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case CURL_SSLVERSION_MAX_TLSv1_3:
|
case CURL_SSLVERSION_MAX_TLSv1_3:
|
||||||
|
case CURL_SSLVERSION_MAX_DEFAULT:
|
||||||
#ifdef TLS1_3_VERSION
|
#ifdef TLS1_3_VERSION
|
||||||
break;
|
break;
|
||||||
#else
|
#else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче