From: Michael R Sweet Date: Wed, 29 Aug 2018 22:20:11 +0000 (-0400) Subject: Add digest debugging and fix a small bug in the HTTP unit test. X-Git-Tag: v2.3b6~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7d80a247f0cd80ba2b4bff015e89004ad7c2741;p=thirdparty%2Fcups.git Add digest debugging and fix a small bug in the HTTP unit test. --- diff --git a/cups/http-support.c b/cups/http-support.c index 9a167cac36..fd6750bfa9 100644 --- a/cups/http-support.c +++ b/cups/http-support.c @@ -688,6 +688,8 @@ _httpDigest(char *buffer, /* I - Response buffer */ size_t hashsize; /* Size of hash */ + DEBUG_printf(("2_httpDigest(buffer=%p, bufsize=" CUPS_LLFMT ", algorithm=\%s\", username=\"%s\", realm=\"%s\", password=\"%d chars\", nonce=\"%s\", nc=%u, cnonce=\"%s\", qop=\"%s\", method=\"%s\", resource=\"%s\")", buffer, CUPS_LLCAST bufsize, algorithm, username, realm, (int)strlen(password), nonce, nc, cnonce, qop, method, resource)); + if (algorithm) { /* diff --git a/cups/testhttp.c b/cups/testhttp.c index 3ad737f473..6e42562fc3 100644 --- a/cups/testhttp.c +++ b/cups/testhttp.c @@ -752,7 +752,7 @@ main(int argc, /* I - Number of command-line arguments */ * See if we can do authentication... */ - if (cupsDoAuthentication(http, "GET", resource)) + if (cupsDoAuthentication(http, "HEAD", resource)) { status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; break;