]> granicus.if.org Git - curl/commitdiff
schannel: return CURLE_SSL_CACERT on failed verification
authorDaniel Stenberg <daniel@haxx.se>
Sun, 3 Sep 2017 22:02:29 +0000 (00:02 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Sep 2017 09:48:38 +0000 (11:48 +0200)
... not *CACERT_BADFILE as it isn't really because of a bad file.

Bug: https://curl.haxx.se/mail/lib-2017-09/0002.html
Closes #1858

lib/vtls/schannel.c

index 473bebe211485de0545d9ccb1f1e7094c5800dc6..64d180dc416038408d4b71500adab1fefd819fc5 100644 (file)
@@ -714,7 +714,7 @@ schannel_connect_step2(struct connectdata *conn, int sockindex)
         failf(data, "schannel: next InitializeSecurityContext failed: %s",
               Curl_sspi_strerror(conn, sspi_status));
       return sspi_status == SEC_E_UNTRUSTED_ROOT ?
-          CURLE_SSL_CACERT_BADFILE : CURLE_SSL_CONNECT_ERROR;
+          CURLE_SSL_CACERT : CURLE_SSL_CONNECT_ERROR;
     }
 
     /* check if there was additional remaining encrypted data */