/*
- * "$Id: http.c 6285 2007-02-16 01:10:55Z mike $"
+ * "$Id: http.c 6499 2007-04-30 21:44:43Z mike $"
*
* HTTP routines for the Common UNIX Printing System (CUPS).
*
major_status = gss_release_name(&minor_status, &http->gssname);
#endif /* HAVE_GSSAPI */
+#ifdef HAVE_AUTHORIZATION_H
+ if (http->auth_ref)
+ AuthorizationFree(http->auth_ref, kAuthorizationFlagDefaults);
+#endif /* HAVE_AUTHORIZATION_H */
+
httpClearFields(http);
if (http->authstring && http->authstring != http->_authstring)
httpClearFields(http);
/*
- * The Kerberos authentication string can only be used once...
+ * The Kerberos and AuthRef authentication strings can only be used once...
*/
- if (http->authstring && !strncmp(http->authstring, "Negotiate", 9))
+ if (http->authstring &&
+ (!strncmp(http->authstring, "Negotiate", 9) ||
+ !strncmp(http->authstring, "AuthRef", 7)))
{
http->_authstring[0] = '\0';
/*
- * End of "$Id: http.c 6285 2007-02-16 01:10:55Z mike $".
+ * End of "$Id: http.c 6499 2007-04-30 21:44:43Z mike $".
*/