mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
revert last patch, I had NTLM working with r154, this broke again with 155
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@157 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
59875964d0
commit
917a5c435d
5 changed files with 4 additions and 14 deletions
1
CHANGES
1
CHANGES
|
|
@ -1,5 +1,6 @@
|
|||
Changes to proxytunnel version 1.7.1 -- Thu Apr 12 13:40:27 CEST 2007
|
||||
|
||||
- Cygwin SO_REUSEPORT stuff by Marc Heuse
|
||||
- Fix some string-handling related core-dumps
|
||||
- NTLM/SSL fixes by Taco IJsselmuiden <taco@varda.nl>
|
||||
- NTLM fixes by Taco IJsselmuiden <taco@varda.nl>
|
||||
|
|
|
|||
10
http.c
10
http.c
|
|
@ -116,7 +116,7 @@ void proxy_protocol(PTSTREAM *pts)
|
|||
/*
|
||||
* Create the proxy CONNECT command into buf
|
||||
*/
|
||||
if (args_info.remproxy_given && !connected_with_remote_proxy)
|
||||
if (args_info.remproxy_given )
|
||||
{
|
||||
if( args_info.verbose_flag )
|
||||
message( "Tunneling to %s (remote proxy)\n", args_info.remproxy_arg );
|
||||
|
|
@ -183,19 +183,13 @@ void proxy_protocol(PTSTREAM *pts)
|
|||
|
||||
analyze_HTTP(pts);
|
||||
|
||||
if (args_info.remproxy_given && !connected_with_remote_proxy)
|
||||
if (args_info.remproxy_given )
|
||||
{
|
||||
connected_with_remote_proxy = 1;
|
||||
/*
|
||||
* Clean buffer for next analysis
|
||||
*/
|
||||
while ( strcmp( buf, "\r\n" ) != 0 ) readline(pts);
|
||||
|
||||
#ifdef USE_SSL
|
||||
if (args_info.encrypt_flag )
|
||||
stream_enable_ssl(pts);
|
||||
#endif
|
||||
|
||||
if( args_info.verbose_flag )
|
||||
message( "Tunneling to %s (destination)\n", args_info.dest_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.0\r\n", args_info.dest_arg );
|
||||
|
|
|
|||
|
|
@ -289,7 +289,6 @@ void do_daemon()
|
|||
#endif
|
||||
|
||||
/* Open the tunnel */
|
||||
connected_with_remote_proxy = 0;
|
||||
proxy_protocol(stunnel);
|
||||
|
||||
/* If --encrypt is specified, wrap all traffic after the proxy handoff in SSL */
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ int read_fd; /* The file descriptor to read from */
|
|||
int write_fd; /* The file destriptor to write to */
|
||||
char *program_name; /* Guess what? */
|
||||
int i_am_daemon; /* Also... */
|
||||
int connected_with_remote_proxy;
|
||||
|
||||
PTSTREAM *stunnel; /* The stream representing the socket from us to the proxy */
|
||||
PTSTREAM *std; /* The stream representing stdin/stdout */
|
||||
|
|
|
|||
|
|
@ -187,10 +187,7 @@ int stream_enable_ssl(PTSTREAM *pts)
|
|||
SSL_METHOD *meth;
|
||||
SSL *ssl;
|
||||
SSL_CTX *ctx;
|
||||
|
||||
if ( pts->ssl != NULL ){
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Initialise the connection */
|
||||
SSLeay_add_ssl_algorithms();
|
||||
meth = SSLv23_client_method();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue