summaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorHan Han <hhan@thousandeyes.com>2018-08-22 11:13:32 -0700
committerDaniel Stenberg <daniel@haxx.se>2018-09-06 08:27:15 +0200
commit3f3b26d6feb0667714902e836af608094235fca2 (patch)
tree40233ba07978511da7e8a0d958261d3fda65169b /lib/vtls
parent0029aabc5620563a840ea13b313f29ea2a9b395e (diff)
downloadcurl-3f3b26d6feb0667714902e836af608094235fca2.tar.gz
ssl: deprecate CURLE_SSL_CACERT in favour of a unified error code
Long live CURLE_PEER_FAILED_VERIFICATION
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/darwinssl.c2
-rw-r--r--lib/vtls/nss.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c
index 6ea43542d..ae8a5cc1e 100644
--- a/lib/vtls/darwinssl.c
+++ b/lib/vtls/darwinssl.c
@@ -2099,7 +2099,7 @@ static int append_cert_to_array(struct Curl_easy *data,
switch(result) {
case CURLE_OK:
break;
- case CURLE_SSL_CACERT:
+ case CURLE_PEER_FAILED_VERIFICATION:
return CURLE_SSL_CACERT_BADFILE;
case CURLE_OUT_OF_MEMORY:
default:
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index 89f818397..4eb6a7792 100644
--- a/lib/vtls/nss.c
+++ b/lib/vtls/nss.c
@@ -1522,7 +1522,6 @@ static bool is_nss_error(CURLcode err)
{
switch(err) {
case CURLE_PEER_FAILED_VERIFICATION:
- case CURLE_SSL_CACERT:
case CURLE_SSL_CERTPROBLEM:
case CURLE_SSL_CONNECT_ERROR:
case CURLE_SSL_ISSUER_ERROR: