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

Function cupsGetPassword2

cups/usersys.c:185–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 */
184
185const char * /* O - Password */
186cupsGetPassword2(const char *prompt, /* I - Prompt string */
187 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */
188 const char *method, /* I - Request method ("GET", "POST", "PUT") */
189 const char *resource) /* I - Resource path */
190{
191 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */
192
193
194 if (!http)
195 http = _cupsConnect();
196
197 return ((cg->password_cb)(prompt, http, method, resource, cg->password_data));
198}
199
200
201/*

Callers 2

cupsDoAuthenticationFunction · 0.85
auth.cFile · 0.85

Calls 2

_cupsGlobalsFunction · 0.85
_cupsConnectFunction · 0.85

Tested by

no test coverage detected