mirror of
https://github.com/curl/curl.git
synced 2026-07-24 04:17:18 +03:00
schannel: return a more specific error code for SEC_E_UNTRUSTED_ROOT
This commit is contained in:
parent
7cb1e1ee01
commit
07fd7871b3
1 changed files with 2 additions and 1 deletions
|
|
@ -630,7 +630,8 @@ schannel_connect_step2(struct connectdata *conn, int sockindex)
|
|||
else
|
||||
failf(data, "schannel: next InitializeSecurityContext failed: %s",
|
||||
Curl_sspi_strerror(conn, sspi_status));
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
return sspi_status == SEC_E_UNTRUSTED_ROOT ?
|
||||
CURLE_SSL_CACERT_BADFILE : CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
|
||||
/* check if there was additional remaining encrypted data */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue