Lines Matching refs:hostname
33 hostname[HTTP_MAX_URI], /* Hostname from URI */
52 puts("Usage: ./testcreds hostname");
53 puts(" ./testcreds https://hostname[:port]");
63 if (httpSeparateURI(HTTP_URI_CODING_MOST, argv[1], scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK)
69 if ((http = httpConnect2(hostname, port, NULL, AF_UNSPEC, HTTP_ENCRYPTION_ALWAYS, 1, 30000, NULL)) == NULL)
71 printf("ERROR: Unable to connect to \"%s\" on port %d: %s\n", hostname, port, cupsLastErrorString());
78 trust = httpCredentialsGetTrust(hcreds, hostname);
88 printf(" IsValidName: %d\n", httpCredentialsAreValidForName(hcreds, hostname));
104 strlcpy(hostname, argv[1], sizeof(hostname));
107 printf("Trust Store for \"%s\":\n", hostname);
109 if (!httpLoadCredentials(NULL, &tcreds, hostname))
115 printf(" IsValidName: %d\n", httpCredentialsAreValidForName(tcreds, hostname));