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:
Mark Janssen 2008-02-22 21:34:13 +00:00
parent 447d80b687
commit b5bde0c35e
5 changed files with 28 additions and 6 deletions

6
http.c
View file

@ -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);