Lines Matching refs:scheme
40 static const char *cups_auth_find(const char *www_authenticate, const char *scheme);
41 static const char *cups_auth_param(const char *scheme, const char *name, char *value, size_t valsiz…
42 static const char *cups_auth_scheme(const char *www_authenticate, char *scheme, size_t schemesize);
114 char scheme[256], /* Scheme name */ in cupsDoAuthentication() local
168 …_scheme(www_auth, scheme, sizeof(scheme)); schemedata; schemedata = cups_auth_scheme(schemedata + … in cupsDoAuthentication()
174 DEBUG_printf(("2cupsDoAuthentication: Trying scheme \"%s\"...", scheme)); in cupsDoAuthentication()
177 if (!_cups_strcasecmp(scheme, "Negotiate")) in cupsDoAuthentication()
204 if (_cups_strcasecmp(scheme, "Basic") && _cups_strcasecmp(scheme, "Digest")) in cupsDoAuthentication()
210 DEBUG_printf(("2cupsDoAuthentication: Scheme \"%s\" not yet supported.", scheme)); in cupsDoAuthentication()
218 …ries > 1 || !http->userpass[0]) && (!_cups_strcasecmp(scheme, "Basic") || (!_cups_strcasecmp(schem… in cupsDoAuthentication()
237 http->digest_tries = _cups_strncasecmp(scheme, "Digest", 6) != 0; in cupsDoAuthentication()
264 if (!_cups_strcasecmp(scheme, "Basic")) in cupsDoAuthentication()
277 else if (!_cups_strcasecmp(scheme, "Digest")) in cupsDoAuthentication()
517 const char *scheme) /* I - Authentication scheme */ in cups_auth_find() argument
519 size_t schemelen = strlen(scheme); /* Length of scheme */ in cups_auth_find()
522 …auth_find(www_authenticate=\"%s\", scheme=\"%s\"(%d))", www_authenticate, scheme, (int)schemelen)); in cups_auth_find()
539 …if (!strncmp(www_authenticate, scheme, schemelen) && (isspace(www_authenticate[schemelen] & 255) |… in cups_auth_find()
587 cups_auth_param(const char *scheme, /* I - Pointer to auth data */ in cups_auth_param() argument
598 …DEBUG_printf(("8cups_auth_param(scheme=\"%s\", name=\"%s\", value=%p, valsize=%d)", scheme, name, … in cups_auth_param()
600 while (!isspace(*scheme & 255) && *scheme) in cups_auth_param()
601 scheme ++; in cups_auth_param()
603 while (*scheme) in cups_auth_param()
605 while (isspace(*scheme & 255) || *scheme == ',') in cups_auth_param()
606 scheme ++; in cups_auth_param()
608 if (!strncmp(scheme, name, namelen) && scheme[namelen] == '=') in cups_auth_param()
614 scheme += namelen + 1; in cups_auth_param()
615 if (*scheme == '\"') in cups_auth_param()
617 scheme ++; in cups_auth_param()
619 while (*scheme && *scheme != '\"') in cups_auth_param()
622 *valptr++ = *scheme; in cups_auth_param()
624 scheme ++; in cups_auth_param()
629 …while (*scheme && strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~+/=", … in cups_auth_param()
632 *valptr++ = *scheme; in cups_auth_param()
634 scheme ++; in cups_auth_param()
651 while (!isspace(*scheme & 255) && *scheme) in cups_auth_param()
653 if (*scheme == '=') in cups_auth_param()
655 else if (*scheme == '\"') in cups_auth_param()
661 scheme ++; in cups_auth_param()
662 while (*scheme && *scheme != '\"') in cups_auth_param()
663 scheme ++; in cups_auth_param()
666 scheme ++; in cups_auth_param()
696 char *scheme, /* I - Scheme name buffer */ in cups_auth_scheme() argument
700 char *sptr = scheme, /* Pointer into scheme buffer */ in cups_auth_scheme()
701 *send = scheme + schemesize - 1;/* End of scheme buffer */ in cups_auth_scheme()
705 …thenticate=\"%s\", scheme=%p, schemesize=%d)", www_authenticate, (void *)scheme, (int)schemesize)); in cups_auth_scheme()
720 …for (sptr = scheme, start = www_authenticate, param = 0; *www_authenticate && *www_authenticate !=… in cups_auth_scheme()
738 if (sptr > scheme && !param) in cups_auth_scheme()
748 *scheme = '\0'; in cups_auth_scheme()