mirror of
https://github.com/curl/curl.git
synced 2026-05-16 03:26:21 +03:00
schannel: return CURLE_PEER_FAILED_VERIFICATION for untrusted root
This matches what is returned in other TLS backends in the same
situation.
Reviewed-by: Jay Satiro
Reviewed-by: Emil Engler
Follow-up to 5a3efb1
Reported-by: iammrtau on github
Fixes #6003
Closes #6018
This commit is contained in:
parent
1e3c52fba7
commit
abeeffb11c
1 changed files with 4 additions and 0 deletions
|
|
@ -1181,6 +1181,10 @@ schannel_connect_step2(struct connectdata *conn, int sockindex)
|
|||
failf(data, "schannel: SNI or certificate check failed: %s",
|
||||
Curl_sspi_strerror(sspi_status, buffer, sizeof(buffer)));
|
||||
return CURLE_PEER_FAILED_VERIFICATION;
|
||||
case SEC_E_UNTRUSTED_ROOT:
|
||||
failf(data, "schannel: %s",
|
||||
Curl_sspi_strerror(sspi_status, buffer, sizeof(buffer)));
|
||||
return CURLE_PEER_FAILED_VERIFICATION;
|
||||
/*
|
||||
case SEC_E_INVALID_HANDLE:
|
||||
case SEC_E_INVALID_TOKEN:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue