1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 00:58:48 -05:00

schannel: add failf calls for client certificate failures

Closes #2604
This commit is contained in:
ralcock 2018-05-24 16:00:19 +01:00 committed by Daniel Stenberg
parent 75c51e05ac
commit 45eefbd0dd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -439,6 +439,8 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
result = get_cert_location(cert_path, &cert_store_name,
&cert_store_path, &cert_thumbprint_str);
if(result != CURLE_OK) {
failf(data, "schannel: Failed to get certificate location for %s",
cert_path);
Curl_unicodefree(cert_path);
return result;
}
@ -447,6 +449,8 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
(HCRYPTPROV)NULL,
cert_store_name, cert_store_path);
if(!cert_store) {
failf(data, "schannel: Failed to open cert store %s %s",
cert_store_name, cert_store_path);
Curl_unicodefree(cert_path);
return CURLE_SSL_CONNECT_ERROR;
}