From 8aa3f143035ad982acb6e596a8653ac41a7860cc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 30 Aug 2002 09:20:11 +0000 Subject: 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. --- include/curl/curl.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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; -- cgit v1.2.3