summaryrefslogtreecommitdiff
path: root/lib/socks.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-24 08:39:29 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-24 08:41:48 +0200
commit88b1ca7cba5c94b11c3a6510146ba410e8858771 (patch)
tree729eb57a52a880d30c3d16026896b536eb9968d6 /lib/socks.h
parentd71ac6711a4616a851d048cfa82102d1d9e25bdd (diff)
downloadgnurl-88b1ca7cba5c94b11c3a6510146ba410e8858771.tar.gz
gnurl-88b1ca7cba5c94b11c3a6510146ba410e8858771.tar.bz2
gnurl-88b1ca7cba5c94b11c3a6510146ba410e8858771.zip
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/socks.h')
-rw-r--r--lib/socks.h26
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)
/*