MCPcopy Create free account
hub / github.com/OpenPrinting/cups / httpCopyCredentials

Function httpCopyCredentials

cups/tls-sspi.c:132–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 */
131
132int /* O - Status of call (0 = success) */
133httpCopyCredentials(
134 http_t *http, /* I - Connection to server */
135 cups_array_t **credentials) /* O - Array of credentials */
136{
137 DEBUG_printf(("httpCopyCredentials(http=%p, credentials=%p)", http, credentials));
138
139 if (!http || !http->tls || !http->tls->remoteCert || !credentials)
140 {
141 if (credentials)
142 *credentials = NULL;
143
144 return (-1);
145 }
146
147 *credentials = cupsArrayNew(NULL, NULL);
148 httpAddCredential(*credentials, http->tls->remoteCert->pbCertEncoded, http->tls->remoteCert->cbCertEncoded);
149
150 return (0);
151}
152
153
154/*

Callers

nothing calls this directly

Calls 2

cupsArrayNewFunction · 0.85
httpAddCredentialFunction · 0.85

Tested by

no test coverage detected