Patch for http proxy support [util/http.c]
Florent Thoumie
flz at xbsd.org
Mon Oct 18 17:37:25 CEST 2004
Hi,
This patch corrects a bug when the password in the following
scheme [1] contains a '/'. There's also some style fixes (not
much important).
Again, thnks for your work.
Here is the patch :
--- patch-gnupg begins here ---
--- util/http.c Sat Oct 16 23:31:36 2004
+++ util/http.c.new Mon Oct 18 17:17:53 2004
@@ -326,16 +326,17 @@
p++;
if( *p == '/' ) { /* there seems to be a hostname */
p++;
- if( (p2 = strchr(p, '/')) )
- *p2++ = 0;
/* Check for username/password encoding */
- if((p3=strchr(p,'@')))
+ if( (p3 = strchr(p, '@')) )
{
uri->auth=p;
*p3++='\0';
p=p3;
}
+
+ if( (p2 = strchr(p, '/')) )
+ *p2++ = 0;
strlwr( p );
uri->host = p;
--- patch-gnupg ends here ---
[1] http_proxy="http://user:password@proxy:3128"
--
Florent Thoumie Epita SRS Promo 2005
web : http://xbsd.org/~flz work : (33 1) xxxxxxxx
mail : flz at xbsd.org home : (33 1) 34162095
gpg : 1024D/ADF908C1 cell : (33 6) 76088660
More information about the Gnupg-devel
mailing list