/*
* "$Id: auth.c 7720 2008-07-11 22:46:21Z mike $"
*
- * Authentication functions for the Common UNIX Printing System (CUPS).
+ * Authentication functions for CUPS.
*
* Copyright 2007-2010 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products.
* Include necessary headers...
*/
-#include "globals.h"
-#include "debug.h"
-#include <stdlib.h>
-#include <ctype.h>
-#include <errno.h>
+#include "cups-private.h"
#include <fcntl.h>
#include <sys/stat.h>
#if defined(WIN32) || defined(__EMX__)
return (-1);
}
- if (!password[0])
- {
- http->status = HTTP_AUTHORIZATION_CANCELED;
- return (-1);
- }
-
snprintf(http->userpass, sizeof(http->userpass), "%s:%s", cupsUser(),
password);
}
authorization = httpGetField(http, HTTP_FIELD_WWW_AUTHENTICATE);
authorization += 9;
- while (*authorization && isspace(*authorization & 255))
+ while (*authorization && _cups_isspace(*authorization))
authorization ++;
if (*authorization)