]> 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:28 +0000 (18:20 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 29 Aug 2018 22:20:28 +0000 (18:20 -0400)
cups/http-support.c
cups/testhttp.c

index 1c901689aa61069fec1e401fe65824b7e7407f93..71d978cc550c58f539fe37019e233ad6a5b1c1ce 100644 (file)
@@ -693,6 +693,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 64e0122742c07e815045c3d74490515eb1e05608..ae4324505fb2cf5f28e2f17d70547454e70f7198 100644 (file)
@@ -757,7 +757,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;