Lines Matching full:best
261 * Locate the best matching location so we know what kind of in cupsdAuthorize()
265 con->best = cupsdFindBest(con->uri, httpGetState(con->http)); in cupsdAuthorize()
268 …t(con, CUPSD_LOG_DEBUG2, "con->uri=\"%s\", con->best=%p(%s)", con->uri, con->best, con->best ? con… in cupsdAuthorize()
270 if (con->best && con->best->type != CUPSD_AUTH_NONE) in cupsdAuthorize()
272 if (con->best->type == CUPSD_AUTH_DEFAULT) in cupsdAuthorize()
275 type = con->best->type; in cupsdAuthorize()
393 con->http->hostaddr->addr.sa_family == AF_LOCAL && con->best) in cupsdAuthorize()
410 for (name = (char *)cupsArrayFirst(con->best->names); in cupsdAuthorize()
412 name = (char *)cupsArrayNext(con->best->names)) in cupsdAuthorize()
1369 * 'cupsdFindBest()' - Find the location entry that best matches the resource.
1380 *best; /* Best match for location so far */ in cupsdFindBest() local
1381 size_t bestlen; /* Length of best match */ in cupsdFindBest()
1436 best = NULL; in cupsdFindBest()
1459 best = loc; in cupsdFindBest()
1474 best = loc; in cupsdFindBest()
1484 cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindBest: best=%s", best ? best->location : "NONE"); in cupsdFindBest()
1486 return (best); in cupsdFindBest()
1538 cupsd_location_t *best; /* Best match for location so far */ in cupsdIsAuthorized() local
1559 …dIsAuthorized: con->uri=\"%s\", con->best=%p(%s)", con->uri, con->best, con->best ? con->best->loc… in cupsdIsAuthorized()
1564 * If there is no "best" authentication rule for this request, then in cupsdIsAuthorized()
1569 if (!con->best) in cupsdIsAuthorized()
1579 best = con->best; in cupsdIsAuthorized()
1581 if ((type = best->type) == CUPSD_AUTH_DEFAULT) in cupsdIsAuthorized()
1584 …UTH_SATISFY_%s, num_names=%d", levels[best->level], types[type], best->satisfy ? "ANY" : "ALL", cu… in cupsdIsAuthorized()
1586 if (best->limit == CUPSD_AUTH_LIMIT_IPP) in cupsdIsAuthorized()
1587 …cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: op=%x(%s)", best->op, ippOpString(best->op)); in cupsdIsAuthorized()
1623 auth = cupsdCheckAccess(address, hostname, hostlen, best) in cupsdIsAuthorized()
1628 if (auth == CUPSD_AUTH_DENY && best->satisfy == CUPSD_AUTH_SATISFY_ALL) in cupsdIsAuthorized()
1636 if ((best->encryption >= HTTP_ENCRYPT_REQUIRED && !con->http->tls && in cupsdIsAuthorized()
1639 best->satisfy == CUPSD_AUTH_SATISFY_ALL) && in cupsdIsAuthorized()
1654 if (best->level == CUPSD_AUTH_ANON || /* Anonymous access - allow it */ in cupsdIsAuthorized()
1655 (type == CUPSD_AUTH_NONE && cupsArrayCount(best->names) == 0)) in cupsdIsAuthorized()
1659 best->limit == CUPSD_AUTH_LIMIT_IPP) in cupsdIsAuthorized()
1676 else if (best->satisfy == CUPSD_AUTH_SATISFY_ALL || auth == CUPSD_AUTH_DENY) in cupsdIsAuthorized()
1692 if (best->satisfy == CUPSD_AUTH_SATISFY_ALL || auth == CUPSD_AUTH_DENY) in cupsdIsAuthorized()
1751 if (best->level == CUPSD_AUTH_USER) in cupsdIsAuthorized()
1758 if (cupsArrayCount(best->names) == 0) in cupsdIsAuthorized()
1775 for (name = (char *)cupsArrayFirst(best->names); in cupsdIsAuthorized()
1777 name = (char *)cupsArrayNext(best->names)) in cupsdIsAuthorized()
1790 for (name = (char *)cupsArrayFirst(best->names); in cupsdIsAuthorized()
1792 name = (char *)cupsArrayNext(best->names)) in cupsdIsAuthorized()
1825 for (name = (char *)cupsArrayFirst(best->names); in cupsdIsAuthorized()
1827 name = (char *)cupsArrayNext(best->names)) in cupsdIsAuthorized()