aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaoyin Liu <xiaoyinl@users.noreply.github.com>2019-11-24 01:29:46 +0800
committerJay Satiro <raysatiro@yahoo.com>2019-11-24 03:16:26 -0500
commit0a65febccf0e31bc987be3f90c01194804e61b77 (patch)
tree13d601324d6515ef00853b591ca9c1038f3efbb4
parent8d2dac7dec17286adc05415b4b748e246d238f14 (diff)
schannel: fix --tls-max for when min is --tlsv1 or default
Prior to this change schannel ignored --tls-max (CURL_SSLVERSION_MAX_ macros) when --tlsv1 (CURL_SSLVERSION_TLSv1) or default TLS (CURL_SSLVERSION_DEFAULT), using a max of TLS 1.2 always. Closes https://github.com/curl/curl/pull/4633
-rw-r--r--lib/vtls/schannel.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index bbd2fe921..5ab093b38 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -554,10 +554,6 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
switch(conn->ssl_config.version) {
case CURL_SSLVERSION_DEFAULT:
case CURL_SSLVERSION_TLSv1:
- schannel_cred.grbitEnabledProtocols = SP_PROT_TLS1_0_CLIENT |
- SP_PROT_TLS1_1_CLIENT |
- SP_PROT_TLS1_2_CLIENT;
- break;
case CURL_SSLVERSION_TLSv1_0:
case CURL_SSLVERSION_TLSv1_1:
case CURL_SSLVERSION_TLSv1_2: