summaryrefslogtreecommitdiff
path: root/systemv
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-02-14 11:53:23 -0500
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-02-14 11:53:23 -0500
commitfa26ab9573afab69475d60c3eb3e38be3b5a0587 (patch)
tree761925dce8611b283b37d8370bb92bf239ed73c6 /systemv
parentec7e5bddc7494ad40158b88711f6d2a37cd8c0c8 (diff)
downloadcups-fa26ab9573afab69475d60c3eb3e38be3b5a0587.tar.gz
Eliminate use of private macOS security headers/APIs (Issue #5516)
Eliminate use of deprecated cssmErrorString function. Switch to using SecCertificateCreateWithData. Clean out unused private header availability checks.
Diffstat (limited to 'systemv')
-rw-r--r--systemv/lpadmin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemv/lpadmin.c b/systemv/lpadmin.c
index 709949a62..53580ff4e 100644
--- a/systemv/lpadmin.c
+++ b/systemv/lpadmin.c
@@ -1125,6 +1125,7 @@ enable_printer(http_t *http, /* I - Server connection */
request = ippNewRequest(IPP_OP_ENABLE_PRINTER);
+ httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", ippPort(), "/printers/%s", printer);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser());