/*
* "$Id$"
*
- * cupsGetDevices implementation for the Common UNIX Printing System (CUPS).
+ * cupsGetDevices implementation for CUPS.
*
- * Copyright 2008-2009 by Apple Inc.
+ * Copyright 2008-2010 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
* Include necessary headers...
*/
-#include "globals.h"
-#include "debug.h"
+#include "cups-private.h"
/*
* parameters provide comma-delimited lists of backends to include or omit from
* the request respectively.
*
- * @since CUPS 1.4@
+ * @since CUPS 1.4/Mac OS X 10.6@
*/
ipp_status_t /* O - Request status - @code IPP_OK@ on success. */
if (!cupsDoAuthentication(http, "POST", "/"))
httpReconnect(http);
else
+ {
+ status = HTTP_AUTHORIZATION_CANCELED;
break;
+ }
}
#ifdef HAVE_SSL
httpBlocking(http, blocking);
httpFlush(http);
- if (status == IPP_ERROR)
+ if (status == HTTP_ERROR)
_cupsSetError(IPP_ERROR, NULL, 0);
else
{