# endif /* HAVE_LIBZ */
/**** New in CUPS 2.2.9 ****/
- char algorithm[65], /* Algorithm from WWW-Authenticate */
+ char *authentication_info,
+ /* Authentication-Info header */
+ algorithm[65], /* Algorithm from WWW-Authenticate */
nextnonce[HTTP_MAX_VALUE],
/* Next nonce value from Authentication-Info */
opaque[HTTP_MAX_VALUE],
http->server = NULL;
}
+ if (http->authentication_info)
+ {
+ _cupsStrFree(http->authentication_info);
+ http->authentication_info = NULL;
+ }
+
http->expect = (http_status_t)0;
}
}
case HTTP_FIELD_SERVER :
return (http->server);
+ case HTTP_FIELD_AUTHENTICATION_INFO :
+ return (http->authentication_info);
+
case HTTP_FIELD_AUTHORIZATION :
if (http->field_authorization)
{
/*
- * Special case for WWW-Authenticate: as its contents can be
+ * Special case for Authorization: as its contents can be
* longer than HTTP_MAX_VALUE...
*/
http->server = _cupsStrAlloc(value);
break;
+ case HTTP_FIELD_AUTHENTICATION_INFO :
+ if (http->authentication_info)
+ _cupsStrFree(http->authentication_info);
+
+ http->authentication_info = _cupsStrAlloc(value);
+ break;
+
default :
strlcpy(http->fields[field], value, HTTP_MAX_VALUE);
break;
# Paged printed on Test3
count=`$GREP '^Test3 ' $BASE/log/page_log | awk 'BEGIN{count=0}{count=count+$7}END{print count}'`
-expected=2
+expected=4
if test $count != $expected; then
echo "FAIL: Printer 'Test3' produced $count page(s), expected $expected."
echo " <p>FAIL: Printer 'Test3' produced $count page(s), expected $expected.</p>" >>$strfile