mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Changed basicauth interface.
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@206 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
a63b545d46
commit
f515473938
4 changed files with 12 additions and 11 deletions
6
http.c
6
http.c
|
|
@ -122,7 +122,7 @@ void proxy_protocol(PTSTREAM *pts) {
|
|||
strzcat( buf, "Proxy-Authorization: NTLM %s\r\n", ntlm_type1_buf );
|
||||
}
|
||||
} else {
|
||||
strzcat( buf, "Proxy-Authorization: Basic %s\r\n", basicauth );
|
||||
strzcat( buf, "Proxy-Authorization: Basic %s\r\n", basicauth(args_info.user_arg, args_info.pass_arg ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -161,8 +161,8 @@ void proxy_protocol(PTSTREAM *pts) {
|
|||
message( "\nTunneling to %s (destination)\n", args_info.dest_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.0\r\n", args_info.dest_arg);
|
||||
|
||||
if ( args_info.user_given && args_info.pass_given )
|
||||
strzcat( buf, "Proxy-Authorization: Basic %s\r\n", basicauth );
|
||||
if ( args_info.remuser_given && args_info.rempass_given )
|
||||
strzcat( buf, "Proxy-Authorization: Basic %s\r\n", basicauth(args_info.remuser_arg, args_info.rempass_arg ));
|
||||
|
||||
strzcat( buf, "Proxy-Connection: Keep-Alive\r\n");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue