cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: introduced an auth callback

From: Joe Mason <jmason_at_rim.com>
Date: Thu, 17 May 2012 19:12:25 +0000

> From: curl-library-bounces_at_cool.haxx.se [curl-library-bounces_at_cool.haxx.se] on
> behalf of Jeff King [peff_at_peff.net]
> Sent: Wednesday, May 16, 2012 9:27 PM
> To: libcurl development
> Subject: Re: introduced an auth callback
>
> I don't particularly mind if it is curl_easy_getinfo, or if it is part
> of the auth_info struct. Though it seemed in the earlier discussion you
> wanted to avoid allowing arbitrary curl functions during a callback, so
> that makes the former more complicated.

I think curl_easy_getinfo should be ok to use from a callback since it doesn't change any state. (I'd add an alias "curl_cb_getinfo" to make this obvious.)

Joe
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-17