summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHan Han <hhan@thousandeyes.com>2018-11-19 17:48:59 -0800
committerDaniel Stenberg <daniel@haxx.se>2018-11-20 14:57:00 +0100
commit78ff4e0de3c53b026bb23a92c5c7abe3d285038e (patch)
tree3d823e731507e9d9efe4ce291550a2b59b616a46 /src
parent89d2e95f783963778b3db45a398360b94587c295 (diff)
downloadcurl-78ff4e0de3c53b026bb23a92c5c7abe3d285038e.tar.gz
ssl: replace all internal uses of CURLE_SSL_CACERT
Closes #3291
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 46ca316f9..e53a9d867 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -97,7 +97,7 @@ CURLcode curl_easy_perform_ev(CURL *easy);
static bool is_fatal_error(CURLcode code)
{
switch(code) {
- /* TODO: Should CURLE_SSL_CACERT be included as critical error ? */
+ /* TODO: Should CURLE_PEER_FAILED_VERIFICATION be a critical error? */
case CURLE_FAILED_INIT:
case CURLE_OUT_OF_MEMORY:
case CURLE_UNKNOWN_OPTION:
@@ -1805,7 +1805,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
else if(result && global->showerror) {
fprintf(global->errors, "curl: (%d) %s\n", result, (errorbuffer[0]) ?
errorbuffer : curl_easy_strerror(result));
- if(result == CURLE_SSL_CACERT)
+ if(result == CURLE_PEER_FAILED_VERIFICATION)
fputs(CURL_CA_CERT_ERRORMSG, global->errors);
}