summaryrefslogtreecommitdiff
path: root/lib/vtls/schannel.c
diff options
context:
space:
mode:
authorralcock <richard.alcock@mathworks.co.uk>2018-05-24 16:00:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-05-27 23:30:23 +0200
commit45eefbd0ddebe9156195507f1d4f4ef238a33633 (patch)
tree68c62deaa569869494dbd42fab17655f0120e2db /lib/vtls/schannel.c
parent75c51e05ac93dd4d039c2764a95d876d13709d4d (diff)
downloadcurl-45eefbd0ddebe9156195507f1d4f4ef238a33633.tar.gz
schannel: add failf calls for client certificate failures
Closes #2604
Diffstat (limited to 'lib/vtls/schannel.c')
-rw-r--r--lib/vtls/schannel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index edc2459b7..c50fd223a 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -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;
}