cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Any explanation behind the value of CURLAUTH_ONLY?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 14 Jan 2015 17:59:00 +0100 (CET)

On Tue, 13 Jan 2015, Dan Fandrich wrote:

> The interpretation of these bits as a signed or unsigned number will differ,
> but since libcurl treats the result as a raw set of bits, it doesn't really
> matter.

That's also why the values are defined using typecasts to unsigned long.

> This treatment encourages sloppy and nonportable programming practises but
> in this case it works out in the end.

Probably wasn't the most clever value to pick. I'm not always as bright as I
want to be! =)

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-14