mirror of
https://github.com/curl/curl.git
synced 2026-08-06 10:46:18 +03:00
schannel: error on TLS 1.3-only with cipher list
The legacy SCHANNEL_CRED path cannot negotiate TLS 1.3. When TLS 1.3 is the only enabled protocol and a cipher list is set, fail instead of silently downgrading to TLS 1.2. Fixes https://github.com/curl/curl/issues/21702 Closes https://github.com/curl/curl/pull/21725
This commit is contained in:
parent
2ba0a0e41e
commit
fc90bdbaf9
1 changed files with 5 additions and 0 deletions
|
|
@ -654,6 +654,11 @@ static CURLcode acquire_sspi_handle(struct Curl_cfilter *cf,
|
|||
|
||||
if(ciphers) {
|
||||
if((enabled_protocols & SP_PROT_TLS1_3_CLIENT)) {
|
||||
if(!(enabled_protocols & ~SP_PROT_TLS1_3_CLIENT)) {
|
||||
failf(data, "schannel: TLS 1.3 is not supported with a cipher list; "
|
||||
"remove the cipher list or allow a lower TLS version");
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
infof(data, "schannel: WARNING: This version of Schannel "
|
||||
"negotiates a less-secure TLS version than TLS 1.3 because the "
|
||||
"user set an algorithm cipher list.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue