mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Remote proxy encryption
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@221 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
447d80b687
commit
b5bde0c35e
5 changed files with 28 additions and 6 deletions
6
http.c
6
http.c
|
|
@ -157,6 +157,12 @@ void proxy_protocol(PTSTREAM *pts) {
|
|||
while ( strcmp( buf, "\r\n" ) != 0 )
|
||||
readline(pts);
|
||||
|
||||
/* If --encrypt-remproxy is specified, connect to the remote proxy using SSL */
|
||||
#ifdef USE_SSL
|
||||
if ( args_info.encryptremproxy_flag )
|
||||
stream_enable_ssl(stunnel);
|
||||
#endif
|
||||
|
||||
if( args_info.verbose_flag )
|
||||
message( "\nTunneling to %s (destination)\n", args_info.dest_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.0\r\n", args_info.dest_arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue