search for: establish_proxy_connection

Displaying 8 results from an estimated 8 matches for "establish_proxy_connection".

2003 May 14
0
Basic HTTP Proxy Authentication: patch update
...Establish a proxy connection on an open socket to a web proxy by - * using the HTTP CONNECT method. + * using the CONNECT method. If proxy_user and proxy_pass are not NULL, + * they are used to authenticate to the proxy using the "Basic" + * proxy authorization protocol **/ -static int establish_proxy_connection(int fd, char *host, int port) +static int establish_proxy_connection(int fd, char *host, int port, + char *proxy_user, char *proxy_pass) { char buffer[1024]; + char authbuf[1024]; + size_t authlen; char *cp; - snprintf(buffer, sizeof(buffer),...
2002 Apr 04
1
[patch] Basic HTTP Proxy Authentication
....000000000 +0200 @@ -33,15 +33,52 @@ #include "rsync.h" +/* declare the base64_encode function from authenticate.c */ +void base64_encode(char *buf, int len, char *out); -/* Establish a proxy connection on an open socket to a web roxy by - * using the CONNECT method. */ -static int establish_proxy_connection(int fd, char *host, int port) +/* Establish a proxy connection on an open socket to a web proxy by + * using the CONNECT method. If proxy_user and proxy_pass are not NULL, + * they are used to authenticate to the proxy using the "Basic" + * proxy authorization protocol */ +static int esta...
2006 May 24
0
rsync connection limit
...o_timeout > 0 ) + { + SIGACTION(SIGALRM, contimeout_handler); + alarm(do_timeout); + } + if (connect(s, res->ai_addr, res->ai_addrlen) < 0) { close(s); s = -1; continue; } + + if ( do_timeout > 0 ) + { + alarm(0); + } + if (proxied && establish_proxy_connection(s, host, port, proxy_user, proxy_pass) != 0) {
2004 May 27
0
compiling on HP-UX
...arning: signed and unsigned type in conditional expression util.c: In function `strlower': util.c:578: warning: signed and unsigned type in conditional expression In file included from options.c:22: popt/popt.h:377: warning: type qualifiers ignored on function return type socket.c: In function `establish_proxy_connection': socket.c:97: warning: signed and unsigned type in conditional expression socket.c: In function `try_bind_local': socket.c:139: warning: implicit declaration of function `getaddrinfo' socket.c:148: warning: implicit declaration of function `freeaddrinfo' socket.c: In function `is_a...
2002 Mar 28
1
(no subject)
...g: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c util.c -o util.o util.c: In function `strlower': util.c:637: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c socket.c -o socket.o socket.c: In function `establish_proxy_connection': socket.c:71: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c params.c -o params.o params.c: In function `Continuation': params.c:167: warning: subscript has type `char' params.c: In function `Parameter': params.c:389: warning:...
2002 Feb 20
1
Errors compiling rsync 2.5.2 on Solaris 8
...IG_H -Wall -W -I./popt -c hlink.c -o hlink.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c token.c -o token.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c uidlist.c -o uidlist.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c socket.c -o socket.o socket.c: In function `establish_proxy_connection': socket.c:71: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c fileio.c -o fileio.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c batch.c -o batch.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientname.c -o clientname.o gcc...
2002 Nov 06
4
Rsync-2.5.5 on Tru64 UNIX V51.A
...FIG_H -Wall -W -I./popt -c hlink.c -o hlink.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c token.c -o token.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c uidlist.c -o uidlist.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c socket.c -o socket.o socket.c: In function `establish_proxy_connection': socket.c:71: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c fileio.c -o fileio.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c batch.c -o batch.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientname.c -o clientname.o gcc...
2002 Jan 29
1
Solaris 2.8/2.5.2 build issues
...FIG_H -Wall -W -I./popt -c hlink.c -o hlink.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c token.c -o token.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c uidlist.c -o uidlist.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c socket.c -o socket.o socket.c: In function `establish_proxy_connection': socket.c:71: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c fileio.c -o fileio.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c batch.c -o batch.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientname.c -o clientname.o gcc...