Lines Matching +defs:val +defs:username

292     unsigned val = 0;
297 val ^= i;
298 val <<= 1;
302 return val;
2854 char *username = NULL;
2909 * digest-response = 1#( username | realm | nonce | cnonce |
2914 if (strcasecmp(name, "username") == 0) {
2915 _plug_strdup(sparams->utils, value, &username, NULL);
3035 * username = "username" "=" <"> username-value <">
3036 * username-value = qdstr-val cnonce = "cnonce" "=" <">
3037 * cnonce-value <"> cnonce-value = qdstr-val nonce-count = "nc"
3048 if ((username == NULL) ||
3065 unsigned val = hash(username) % text->reauth->size;
3069 if (text->reauth->e[val].authid &&
3070 !strcmp(username, text->reauth->e[val].authid)) {
3072 _plug_strdup(sparams->utils, text->reauth->e[val].realm,
3075 _plug_strdup(sparams->utils, (char *)text->reauth->e[val].nonce,
3078 _plug_strdup(sparams->utils, text->reauth->e[val].nonce,
3081 text->nonce_count = ++text->reauth->e[val].nonce_count;
3083 _plug_strdup(sparams->utils, (char *)text->reauth->e[val].cnonce,
3086 _plug_strdup(sparams->utils, text->reauth->e[val].cnonce,
3089 stext->timestamp = text->reauth->e[val].u.s.timestamp;
3167 username, 0, SASL_CU_AUTHID, oparams);
3180 username, 0, SASL_CU_AUTHZID, oparams);
3202 /* We didn't find this username */
3250 * H_URP = H({ username-value,":",realm-value,":",passwd}) sec->data
3259 DigestCalcSecret(sparams->utils, (unsigned char *)username,
3263 DigestCalcSecret(sparams->utils, username,
3268 * A1 = { H( { username-value, ":", realm-value, ":", passwd } ),
3484 * The "username-value", "realm-value" and "passwd" are encoded according
3486 * present, and all the characters of either "username-value" or "passwd"
3520 unsigned val = hash(username) % text->reauth->size;
3527 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
3528 text->reauth->e[val].authid = username; username = NULL;
3529 text->reauth->e[val].realm = text->realm; text->realm = NULL;
3530 text->reauth->e[val].nonce = text->nonce; text->nonce = NULL;
3531 text->reauth->e[val].cnonce = cnonce; cnonce = NULL;
3533 if (text->nonce_count <= text->reauth->e[val].nonce_count) {
3535 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
3538 text->reauth->e[val].nonce_count = text->nonce_count;
3539 text->reauth->e[val].u.s.timestamp = time(0);
3545 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
3557 if (username != NULL)
3558 sparams->utils->free (username);
3861 unsigned char *username,
3878 if(!username || !cnonce || !nonce || !ncvalue || !digesturi || !passwd) {
3895 username,
4044 resplen = strlen(oparams->authid) + strlen("username") + 5;
4050 sprintf(text->out_buf, "username=\"%s\"", oparams->authid);
4810 unsigned val;
4819 val = hash(params->serverFQDN) % text->reauth->size;
4821 if (text->reauth->e[val].u.c.serverFQDN &&
4822 !strcasecmp(text->reauth->e[val].u.c.serverFQDN,
4824 !strcmp(text->reauth->e[val].authid, oparams->authid)) {
4832 _plug_strdup(params->utils, text->reauth->e[val].realm,
4835 _plug_strdup(params->utils, (char *)text->reauth->e[val].nonce,
4838 _plug_strdup(params->utils, text->reauth->e[val].nonce,
4841 text->nonce_count = ++text->reauth->e[val].nonce_count;
4843 _plug_strdup(params->utils, (char *)text->reauth->e[val].cnonce,
4846 _plug_strdup(params->utils, text->reauth->e[val].cnonce,
4849 ctext->protection = text->reauth->e[val].u.c.protection;
4850 ctext->cipher = text->reauth->e[val].u.c.cipher;
4851 ctext->server_maxbuf = text->reauth->e[val].u.c.server_maxbuf;
4864 * (username | realm | nonce | cnonce | nonce-count | qop digest-uri |
4921 * (username | realm | nonce | cnonce | nonce-count | qop digest-uri |
5018 unsigned val = hash(params->serverFQDN) % text->reauth->size;
5023 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);
5025 &text->reauth->e[val].authid, NULL);
5026 text->reauth->e[val].realm = text->realm; text->realm = NULL;
5027 text->reauth->e[val].nonce = text->nonce; text->nonce = NULL;
5028 text->reauth->e[val].nonce_count = text->nonce_count;
5029 text->reauth->e[val].cnonce = text->cnonce; text->cnonce = NULL;
5031 &text->reauth->e[val].u.c.serverFQDN, NULL);
5032 text->reauth->e[val].u.c.protection = ctext->protection;
5033 text->reauth->e[val].u.c.cipher = ctext->cipher;
5034 text->reauth->e[val].u.c.server_maxbuf = ctext->server_maxbuf;
5045 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);
5069 unsigned val = hash(params->serverFQDN) % text->reauth->size;
5085 reauth = text->reauth->e[val].u.c.serverFQDN &&
5086 !strcasecmp(text->reauth->e[val].u.c.serverFQDN,
5121 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);