summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/lib/strerror.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-04 13:56:39 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-04 13:56:39 (GMT)
commit85d966dcd7a29a17e42fde7b1c109e642f063d82 (patch)
tree4a963906e6f83ad32d02adf681dfe1e1a7160d1d /Utilities/cmcurl/lib/strerror.c
parent2c0e87fff3347189db7454cf55669eec45819d9a (diff)
parentf59ab43370dc9bff7e6480032c95505cdd00e3cd (diff)
downloadCMake-85d966dcd7a29a17e42fde7b1c109e642f063d82.zip
CMake-85d966dcd7a29a17e42fde7b1c109e642f063d82.tar.gz
CMake-85d966dcd7a29a17e42fde7b1c109e642f063d82.tar.bz2
Merge topic 'update-curl'
f59ab433 curl: Remove CMake-specific README f53f4a8a Merge branch 'upstream-curl' into update-curl 202adcfe curl 2016-08-03 (f2cb3a01) e1c11352 curl: Update script to get curl 7.50.1 a51c6c53 Merge branch 'upstream-curl' into update-curl 7ec709d3 curl 2015-08-11 (1a7f66a3) 3e9b0343 Add script to update curl from upstream
Diffstat (limited to 'Utilities/cmcurl/lib/strerror.c')
-rw-r--r--Utilities/cmcurl/lib/strerror.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/Utilities/cmcurl/lib/strerror.c b/Utilities/cmcurl/lib/strerror.c
index 5657141..0e268d5 100644
--- a/Utilities/cmcurl/lib/strerror.c
+++ b/Utilities/cmcurl/lib/strerror.c
@@ -5,11 +5,11 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2004 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2004 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
- * are also available at http://curl.haxx.se/docs/copyright.html.
+ * are also available at https://curl.haxx.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
@@ -39,10 +39,14 @@
#include <idna.h>
#endif
+#ifdef USE_WINDOWS_SSPI
+#include "curl_sspi.h"
+#endif
+
#include "strerror.h"
+/* The last 3 #include files should be in this order */
#include "curl_printf.h"
#include "curl_memory.h"
-/* The last #include file should be: */
#include "memdebug.h"
const char *
@@ -301,6 +305,9 @@ curl_easy_strerror(CURLcode error)
case CURLE_SSL_INVALIDCERTSTATUS:
return "SSL server certificate status verification FAILED";
+ case CURLE_HTTP2_STREAM:
+ return "Stream error in the HTTP/2 framing layer";
+
/* error codes not used by current libcurl */
case CURLE_OBSOLETE20:
case CURLE_OBSOLETE24:
@@ -1072,14 +1079,13 @@ const char *Curl_sspi_strerror (struct connectdata *conn, int err)
strncpy(outbuf, txt, outmax);
else if(err == SEC_E_ILLEGAL_MESSAGE)
snprintf(outbuf, outmax,
- "SEC_E_ILLEGAL_MESSAGE (0x%04X%04X) - This error usually occurs "
+ "SEC_E_ILLEGAL_MESSAGE (0x%08X) - This error usually occurs "
"when a fatal SSL/TLS alert is received (e.g. handshake failed). "
"More detail may be available in the Windows System event log.",
- (err >> 16) & 0xffff, err & 0xffff);
+ err);
else {
str = txtbuf;
- snprintf(txtbuf, sizeof(txtbuf), "%s (0x%04X%04X)",
- txt, (err >> 16) & 0xffff, err & 0xffff);
+ snprintf(txtbuf, sizeof(txtbuf), "%s (0x%08X)", txt, err);
txtbuf[sizeof(txtbuf)-1] = '\0';
#ifdef _WIN32_WCE