[cups.development] Re: [cups.commit] [CUPS] r5710 - branches/kerberos/cups
Michael Sweet
mike at easysw.com
Sun Jul 9 14:49:51 PDT 2006
cups-dev at easysw.com wrote:
> Author: jelmer
> Date: 2006-07-09 17:17:33 -0400 (Sun, 09 Jul 2006)
> New Revision: 5710
> Log:
> The WWW-Authenticate: header can be up to 2048 bytes long if it's being
> used for Negotiate.
>
>
> Modified:
> branches/kerberos/cups/http.h
>
> Modified: branches/kerberos/cups/http.h
> ===================================================================
> --- branches/kerberos/cups/http.h 2006-07-09 19:39:39 UTC (rev 5709)
> +++ branches/kerberos/cups/http.h 2006-07-09 21:17:33 UTC (rev 5710)
> @@ -119,7 +119,7 @@
> # define HTTP_MAX_URI 1024 /* Max length of URI string */
> # define HTTP_MAX_HOST 256 /* Max length of hostname string */
> # define HTTP_MAX_BUFFER 2048 /* Max length of data buffer */
> -# define HTTP_MAX_VALUE 256 /* Max header field value length */
> +# define HTTP_MAX_VALUE 2048 /* Max header field value length */
You can't change this constant without breaking binary compatibility.
In addition, you're increasing the size of the http_t structure to
something like 64k... :)
What you'll need to do is add a char * to the *end* of the http_t
structure and update httpGetField() and httpSetField() to handle
HTTP_FIELD_WWW_AUTHENTICATE values specially, copying as much as
possible to the old field for backwards-compatibility...
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
More information about the cups
mailing list