Lines Matching refs:client

113 /* client list definitions */
156 client_entry *client;
169 /* client-list, opaque, and one-time-nonce stuff */
177 static const char *client_mutex_type = "authdigest-client";
241 /* set up client list */
373 * client, can't be done. However, the alternative is a nightmare:
663 "Whether or not to check the nonce-count sent by the client"),
675 * client list code
677 * Each client is assigned a number, which is transferred in the opaque
679 * is just a simple counter which is incremented for each new client.
685 * off it. The client's number modulo the size of the array gives the
688 * The clients are garbage collected whenever a new client is allocated
690 * simple semi-LRU is used for this: whenever a client entry is accessed
700 * clients will just be sent a new client id (opaque field) and nonce
703 * has enough headroom over the current client set size then this should
718 * Get the client given its client number (the key). Returns the entry,
723 * that there are potentially problems if a client uses multiple,
758 "get_client(): client %lu found", key);
762 "get_client(): client %lu not found", key);
809 * Add a new client to the list. Returns the entry if successful, NULL
833 "gc'd %ld client entries. Total new clients: "
841 "unable to allocate new auth_digest client");
859 "allocated new client %lu", key);
990 * nonce-count when it does, and because the client does not get notified
1017 resp->client = get_client(resp->opaque_num, r);
1018 if (res == OK && resp->client) {
1019 resp->client->nonce_count++;
1092 * Generate a new client entry, add it to the list, and return the
1110 "failed to allocate client entry - ignoring client");
1155 /* new client */
1157 && (resp->client = gen_client(r)) != NULL) {
1158 opaque = ltox(r->pool, resp->client->key);
1164 else if (resp->client == NULL) {
1165 /* client info was gc'd */
1166 resp->client = gen_client(r);
1167 if (resp->client != NULL) {
1168 opaque = ltox(r->pool, resp->client->key);
1179 resp->client->nonce_count = 0;
1192 if (resp->client && conf->nonce_lifetime == 0) {
1193 memcpy(resp->client->last_nonce, nonce, NONCE_LEN+1);
1197 * possible so that the client won't send the Authorization header
1234 /* get the client response and mark */
1342 /* qop is none, client must not send a nonce count */
1360 if (!resp->client) {
1364 if (nc != resp->client->nonce_count) {
1368 resp->client->nonce_count);
1425 else if (conf->nonce_lifetime == 0 && resp->client) {
1426 if (memcmp(resp->client->last_nonce, resp->nonce, NONCE_LEN)) {
1518 /* These functions return 0 if client is OK, and proper error status
1521 * couldn't figure out how to tell if the client is authorized or not.
1554 /* get the client response and mark */
1579 "client used wrong authentication scheme `%s': %s",
1784 /* we failed to allocate a client struct */
1840 if (resp->client)
1841 resp->client->nonce_count = 0;
1844 else if (conf->nonce_lifetime == 0 && resp->client) {
1848 memcpy(resp->client->last_nonce, nonce, NONCE_LEN+1);