]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/testhttp.c
Save work.
[thirdparty/cups.git] / cups / testhttp.c
index 1a7b30443370d95d410761c5d7c597ae7708d7fb..5235a72fe88a59ffb4a09fd4bd591b579ebff121 100644 (file)
@@ -620,6 +620,22 @@ main(int  argc,                            /* I - Number of command-line arguments */
       perror(hostname);
       continue;
     }
+
+    if (httpIsEncrypted(http))
+    {
+      cups_array_t *creds;
+      char info[1024];
+
+      if (!httpCopyCredentials(http, &creds))
+      {
+        httpCredentialsString(creds, info, sizeof(info));
+        httpFreeCredentials(creds);
+        printf("Credentials: \"%s\"\n", info);
+      }
+      else
+        puts("Credentials: Unknown");
+    }
+
     printf("Checking file \"%s\"...\n", resource);
 
     do