From: Michael R Sweet Date: Sat, 19 Oct 2024 21:05:48 +0000 (-0400) Subject: Use client credentials, if set. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da4c44dff0a7a76bdad2890fcef40f3005a806f5;p=thirdparty%2Fcups.git Use client credentials, if set. --- diff --git a/cups/http.c b/cups/http.c index ded6ff2340..009467696f 100644 --- a/cups/http.c +++ b/cups/http.c @@ -341,6 +341,8 @@ httpClose(http_t *http) // I - HTTP connection if (http->authstring && http->authstring != http->_authstring) free(http->authstring); + _httpFreeCredentials(http->tls_credentials); + free(http); } @@ -3789,6 +3791,7 @@ http_create( http_t *http; // New HTTP connection char service[255]; // Service name http_addrlist_t *myaddrlist = NULL; // My address list + _cups_globals_t *cg = _cupsGlobals(); // Thread global data DEBUG_printf("4http_create(host=\"%s\", port=%d, addrlist=%p, family=%d, encryption=%d, blocking=%d, mode=%d)", host, port, (void *)addrlist, family, encryption, blocking, mode); @@ -3868,6 +3871,9 @@ http_create( http_set_wait(http); + // Set client credentials... + http->tls_credentials = _httpUseCredentials(cg->credentials); + // Return the new structure... return (http); }