diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 08:39:29 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 08:41:48 +0200 |
commit | 88b1ca7cba5c94b11c3a6510146ba410e8858771 (patch) | |
tree | 729eb57a52a880d30c3d16026896b536eb9968d6 /lib/strerror.c | |
parent | d71ac6711a4616a851d048cfa82102d1d9e25bdd (diff) | |
download | curl-88b1ca7cba5c94b11c3a6510146ba410e8858771.tar.gz |
CURLE_PROXY: new error code
Failures clearly returned from a (SOCKS) proxy now causes this return
code. Previously the situation was not very clear as what would be
returned and when.
In addition: when this error code is returned, an application can use
CURLINFO_PROXY_ERROR to query libcurl for the detailed error, which then
returns a value from the new 'CURLproxycode' enum.
Closes #5770
Diffstat (limited to 'lib/strerror.c')
-rw-r--r-- | lib/strerror.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c index 015e588cf..5893f49a9 100644 --- a/lib/strerror.c +++ b/lib/strerror.c @@ -320,6 +320,9 @@ curl_easy_strerror(CURLcode error) case CURLE_QUIC_CONNECT_ERROR: return "QUIC connection error"; + case CURLE_PROXY: + return "proxy handshake error"; + /* error codes not used by current libcurl */ case CURLE_OBSOLETE20: case CURLE_OBSOLETE24: |