curl-users
[ curl-Bugs-882678 ] Bit-mask CURLAUTH_ANY doesn't work
Date: Thu, 22 Jan 2004 19:42:21 -0800
Bugs item #882678, was opened at 2004-01-22 19:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=882678&group_id=976
Category: http
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Bit-mask CURLAUTH_ANY doesn't work
Initial Comment:
When I select CURLAUTH_ANY, it was not selecting
Digest nor Basic, so I stepped into the code.
CURLAUTH_ANY is defined like this:
#define CURLAUTH_ANY ~0
I stepped in http.c, and I see this block of statement:
if((data->state.authwant == CURLAUTH_DIGEST) &&
data->state.digest.nonce)
{... stuff for digest
}
The problem is using the bit masking like this, I do not
see this logic will ever hit for Digest/Basic block.
As soon as I change the line to this one, it worked.
if((data->state.authwant & CURLAUTH_DIGEST) && data-
>state.digest.nonce)
{ ....stuff for digest
}
It works, but I do not know the entire curl code enough
to see if this would be the right fix. Please advise.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=882678&group_id=976
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-23