• Home
  • Raw
  • Download

Lines Matching full:best

262   * Locate the best matching location so we know what kind of  in cupsdAuthorize()
266 con->best = cupsdFindBest(con->uri, httpGetState(con->http)); in cupsdAuthorize()
269 …t(con, CUPSD_LOG_DEBUG2, "con->uri=\"%s\", con->best=%p(%s)", con->uri, con->best, con->best ? con… in cupsdAuthorize()
271 if (con->best && con->best->type != CUPSD_AUTH_NONE) in cupsdAuthorize()
273 if (con->best->type == CUPSD_AUTH_DEFAULT) in cupsdAuthorize()
276 type = con->best->type; in cupsdAuthorize()
394 con->http->hostaddr->addr.sa_family == AF_LOCAL && con->best) in cupsdAuthorize()
411 for (name = (char *)cupsArrayFirst(con->best->names); in cupsdAuthorize()
413 name = (char *)cupsArrayNext(con->best->names)) in cupsdAuthorize()
1370 * 'cupsdFindBest()' - Find the location entry that best matches the resource.
1381 *best; /* Best match for location so far */ in cupsdFindBest() local
1382 size_t bestlen; /* Length of best match */ in cupsdFindBest()
1437 best = NULL; in cupsdFindBest()
1460 best = loc; in cupsdFindBest()
1475 best = loc; in cupsdFindBest()
1485 cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindBest: best=%s", best ? best->location : "NONE"); in cupsdFindBest()
1487 return (best); in cupsdFindBest()
1539 cupsd_location_t *best; /* Best match for location so far */ in cupsdIsAuthorized() local
1560 …dIsAuthorized: con->uri=\"%s\", con->best=%p(%s)", con->uri, con->best, con->best ? con->best->loc… in cupsdIsAuthorized()
1565 * If there is no "best" authentication rule for this request, then in cupsdIsAuthorized()
1570 if (!con->best) in cupsdIsAuthorized()
1580 best = con->best; in cupsdIsAuthorized()
1582 if ((type = best->type) == CUPSD_AUTH_DEFAULT) in cupsdIsAuthorized()
1585 …UTH_SATISFY_%s, num_names=%d", levels[best->level], types[type], best->satisfy ? "ANY" : "ALL", cu… in cupsdIsAuthorized()
1587 if (best->limit == CUPSD_AUTH_LIMIT_IPP) in cupsdIsAuthorized()
1588 …cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: op=%x(%s)", best->op, ippOpString(best->op)); in cupsdIsAuthorized()
1624 auth = cupsdCheckAccess(address, hostname, hostlen, best) in cupsdIsAuthorized()
1629 if (auth == CUPSD_AUTH_DENY && best->satisfy == CUPSD_AUTH_SATISFY_ALL) in cupsdIsAuthorized()
1637 if ((best->encryption >= HTTP_ENCRYPT_REQUIRED && !con->http->tls && in cupsdIsAuthorized()
1640 best->satisfy == CUPSD_AUTH_SATISFY_ALL) && in cupsdIsAuthorized()
1655 if (best->level == CUPSD_AUTH_ANON || /* Anonymous access - allow it */ in cupsdIsAuthorized()
1656 (type == CUPSD_AUTH_NONE && cupsArrayCount(best->names) == 0)) in cupsdIsAuthorized()
1660 best->limit == CUPSD_AUTH_LIMIT_IPP) in cupsdIsAuthorized()
1677 else if (best->satisfy == CUPSD_AUTH_SATISFY_ALL || auth == CUPSD_AUTH_DENY) in cupsdIsAuthorized()
1693 if (best->satisfy == CUPSD_AUTH_SATISFY_ALL || auth == CUPSD_AUTH_DENY) in cupsdIsAuthorized()
1752 if (best->level == CUPSD_AUTH_USER) in cupsdIsAuthorized()
1759 if (cupsArrayCount(best->names) == 0) in cupsdIsAuthorized()
1776 for (name = (char *)cupsArrayFirst(best->names); in cupsdIsAuthorized()
1778 name = (char *)cupsArrayNext(best->names)) in cupsdIsAuthorized()
1791 for (name = (char *)cupsArrayFirst(best->names); in cupsdIsAuthorized()
1793 name = (char *)cupsArrayNext(best->names)) in cupsdIsAuthorized()
1826 for (name = (char *)cupsArrayFirst(best->names); in cupsdIsAuthorized()
1828 name = (char *)cupsArrayNext(best->names)) in cupsdIsAuthorized()