| 183 | */ |
| 184 | |
| 185 | const char * /* O - Password */ |
| 186 | cupsGetPassword2(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 | /* |
no test coverage detected