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

Function cups_set_encryption

cups/usersys.c:1498–1511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1496 */
1497
1498static void
1499cups_set_encryption(
1500 _cups_client_conf_t *cc, /* I - client.conf values */
1501 const char *value) /* I - Value */
1502{
1503 if (!_cups_strcasecmp(value, "never"))
1504 cc->encryption = HTTP_ENCRYPTION_NEVER;
1505 else if (!_cups_strcasecmp(value, "always"))
1506 cc->encryption = HTTP_ENCRYPTION_ALWAYS;
1507 else if (!_cups_strcasecmp(value, "required"))
1508 cc->encryption = HTTP_ENCRYPTION_REQUIRED;
1509 else
1510 cc->encryption = HTTP_ENCRYPTION_IF_REQUESTED;
1511}
1512
1513
1514/*

Callers 3

cups_init_client_confFunction · 0.85
cups_read_client_confFunction · 0.85

Calls 1

_cups_strcasecmpFunction · 0.85

Tested by

no test coverage detected