[cups.development] http_t in cups 1.3
Michael Sweet
mike at easysw.com
Mon Oct 30 05:10:33 PST 2006
BJörn Lindqvist wrote:
> (please CC replies to me, I'm not subscribed to list)
>
> Hello, I hope this is the right forum to ask this question. In cups
> 1.3, the http_t seems to have become opaque so you can't directly
> access its fields. So I wonder how do you write the common idiom:
>
> httpSetField(request->http, HTTP_FIELD_AUTHORIZATION,
> request->http->authstring);
>
> which works in 1.2 in 1.3? In 1.3 the authstring attribute isn't
> directly accessible.
The recommended way is to use the cupsDoAuthenticate() function,
which handles all of the supported authentication schemes. The
authstring member is only used by that function and needs to be
updated for every request with most authentication methods.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
More information about the cups-devel
mailing list