]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add digest debugging and fix a small bug in the HTTP unit test.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 29 Aug 2018 22:20:11 +0000 (18:20 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 29 Aug 2018 22:20:11 +0000 (18:20 -0400)
cups/http-support.c
cups/testhttp.c

index 9a167cac36f9757a5662e419ce14da74f7250ab9..fd6750bfa9066b687d0ecad9bdaa00ca18dae19e 100644 (file)
@@ -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)
   {
    /*
index 3ad737f4731357e78d4f72b427d9b5751d16322a..6e42562fc3b17af1cab3ce21fa451dc8aa2e6a7e 100644 (file)
@@ -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;