aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-30 09:20:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-30 09:20:11 +0000
commit8aa3f143035ad982acb6e596a8653ac41a7860cc (patch)
treee6d92edfc7883f0ffe14904dc151b4483e4d0e74 /include
parentac285b453e0db7c4cd327f4dc4845871ce26f7fa (diff)
SOCKS5 support added (contributed by a still unnamed person). Not properly
working for "IPv6 enabled" libcurls yet, but should be pretty easy for someone to adjust.
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 46a52b1c5..00a7fa88a 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -202,6 +202,12 @@ typedef enum {
CURL_LAST /* never use! */
} CURLcode;
+typedef enum {
+ CURLPROXY_HTTP = 0,
+ CURLPROXY_SOCKS4 = 4,
+ CURLPROXY_SOCKS5 = 5
+} curl_proxytype;
+
/* this was the error code 50 in 7.7.3 and a few earlier versions, this
is no longer used by libcurl but is instead #defined here only to not
make programs break */
@@ -576,6 +582,10 @@ typedef enum {
/* Explicitly allow insecure SSL connects */
CINIT(SSL_INSECURE, LONG, 101),
+ /* indicates type of proxy. accepted values are CURLPROXY_HTTP (default),
+ CURLPROXY_SOCKS4 and CURLPROXY_SOCKS5. */
+ CINIT(PROXYTYPE, LONG, 102),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;