*/
#include "cups-private.h"
+#include "debug-internal.h"
#include <fcntl.h>
#include <sys/stat.h>
-#if defined(WIN32) || defined(__EMX__)
+#if defined(_WIN32) || defined(__EMX__)
# include <io.h>
#else
# include <unistd.h>
-#endif /* WIN32 || __EMX__ */
+#endif /* _WIN32 || __EMX__ */
/*
* Update the Digest authentication string...
*/
- if (http->nextnonce[0])
- {
- strlcpy(http->nonce, http->nextnonce, sizeof(http->nonce));
- http->nonce_count = 1;
- http->nextnonce[0] = '\0';
- }
- else
- http->nonce_count ++;
-
- _httpSetDigestAuthString(http, "GET", resource);
+ _httpSetDigestAuthString(http, http->nextnonce, "GET", resource);
}
#ifdef HAVE_GSSAPI
* Update the Digest authentication string...
*/
- if (http->nextnonce[0])
- {
- strlcpy(http->nonce, http->nextnonce, sizeof(http->nonce));
- http->nonce_count = 1;
- http->nextnonce[0] = '\0';
- }
- else
- http->nonce_count ++;
-
- _httpSetDigestAuthString(http, "PUT", resource);
+ _httpSetDigestAuthString(http, http->nextnonce, "PUT", resource);
}
#ifdef HAVE_GSSAPI