diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-03 14:07:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-04 15:57:45 +0200 |
commit | 52ad36ddcf0b0eae8c45ed1eac690e474a8782af (patch) | |
tree | 27679b9c5d550af908c36579faf5cb450d7d1cc9 /lib/socks.h | |
parent | a1e0b7922a4a54fe9f7487ed71958d346d453a05 (diff) | |
download | curl-bagder/proxy-error.tar.gz |
CURLE_PROXY: new error codebagder/proxy-error
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/socks.h')
-rw-r--r-- | lib/socks.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/socks.h b/lib/socks.h index 64a756337..17e6f4610 100644 --- a/lib/socks.h +++ b/lib/socks.h @@ -48,24 +48,24 @@ int Curl_SOCKS_getsock(struct connectdata *conn, * This function logs in to a SOCKS4(a) proxy and sends the specifics to the * final destination server. */ -CURLcode Curl_SOCKS4(const char *proxy_name, - const char *hostname, - int remote_port, - int sockindex, - struct connectdata *conn, - bool *done); +CURLproxycode Curl_SOCKS4(const char *proxy_name, + const char *hostname, + int remote_port, + int sockindex, + struct connectdata *conn, + bool *done); /* * This function logs in to a SOCKS5 proxy and sends the specifics to the * final destination server. */ -CURLcode Curl_SOCKS5(const char *proxy_name, - const char *proxy_password, - const char *hostname, - int remote_port, - int sockindex, - struct connectdata *conn, - bool *done); +CURLproxycode Curl_SOCKS5(const char *proxy_name, + const char *proxy_password, + const char *hostname, + int remote_port, + int sockindex, + struct connectdata *conn, + bool *done); #if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI) /* |