Dmitriy Sergeyev provided a patch that made the SOCKS[45] code work better as

it now will read the full data sent from servers. The SOCKS-related code was
also moved to the new lib/socks.c source file.
This commit is contained in:
Daniel Stenberg
2006-09-23 19:07:20 +00:00
parent b0d3ba76a0
commit 3ea8a4d220
8 changed files with 585 additions and 480 deletions

19
lib/socks.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef __SOCKS_H
#define __SOCKS_H
/*
* This function logs in to a SOCKS4 proxy and sends the specifics to the
* final destination server.
*/
CURLcode Curl_SOCKS4(const char *proxy_name,
struct connectdata *conn);
/*
* 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,
struct connectdata *conn);
#endif