cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2548108 ] curl stores and reuses auth info across connections

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 02 Feb 2009 16:00:46 +0000

Bugs item #2548108, was opened at 2009-01-30 07:55
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2548108&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
>Status: Pending
Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Romil Mittal (romilmittal)
Assigned to: Daniel Stenberg (bagder)
Summary: curl stores and reuses auth info across connections

Initial Comment:
Fix for bugs related to authentication in networking. The problem was that curl stores and reuses authentication information across connections. This results in the failure to work with digest authentications and also to switch between digest and basic authentications. This change forces CuRL to always cleanup the earlier auth details before a new request and also allows in setting the auth type to NONE so that we can force it to avoid authentication.

Differences ...

==== curl-7.17.1/http.c (text) ====

455a456,462
> //remove any previous authentication stuff
> Curl_safefree(conn->allocptr.proxyuserpwd);
> conn->allocptr.proxyuserpwd = NULL;
>
> Curl_safefree(conn->allocptr.userpwd);
> conn->allocptr.userpwd = NULL;
>
465c472
< if(authhost->want && !authhost->picked)

---
>     //if(authhost->want && !authhost->picked)
471c478
<   if(authproxy->want && !authproxy->picked)
---
>     //if(authproxy->want && !authproxy->picked)
==== curl-7.17.1/url.c (text) ====
1325,1326c1325,1327
<     if(!auth)
<       return CURLE_FAILED_INIT; /* no supported types left! */
---
> 
>     //if(!auth)
>     //return CURLE_FAILED_INIT; /* no supported types left! */
1345,1346c1346,1348
<     if(!auth)
<       return CURLE_FAILED_INIT; /* no supported types left! */
---
> 
>     //if(!auth)
>     //return CURLE_FAILED_INIT; /* no supported types left! */
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Date: 2009-01-30 08:17
Message:
Please check 7.19.3 and see if the problem is gone. If not, I would prefer
a detailed use case of what you do to get this problem and a diff done with
-u!
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2548108&group_id=976
Received on 2009-02-02

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET