| 280 | */ |
| 281 | |
| 282 | static http_t * /* O - New HTTP connection */ |
| 283 | connect_server(const char *command, /* I - Command name */ |
| 284 | http_t *http) /* I - Current HTTP connection */ |
| 285 | { |
| 286 | if (!http) |
| 287 | { |
| 288 | http = httpConnectEncrypt(cupsServer(), ippPort(), |
| 289 | cupsEncryption()); |
| 290 | |
| 291 | if (http == NULL) |
| 292 | { |
| 293 | _cupsLangPrintf(stderr, _("%s: Unable to connect to server."), command); |
| 294 | exit(1); |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | return (http); |
| 299 | } |
| 300 | |
| 301 | |
| 302 | /* |
no test coverage detected