Lines Matching +defs:val +defs:username
291 unsigned val = 0;
296 val ^= i;
297 val <<= 1;
301 return val;
2849 char *username = NULL;
2904 * digest-response = 1#( username | realm | nonce | cnonce |
2909 if (strcasecmp(name, "username") == 0) {
2910 _plug_strdup(sparams->utils, value, &username, NULL);
3030 * username = "username" "=" <"> username-value <">
3031 * username-value = qdstr-val cnonce = "cnonce" "=" <">
3032 * cnonce-value <"> cnonce-value = qdstr-val nonce-count = "nc"
3043 if ((username == NULL) ||
3060 unsigned val = hash(username) % text->reauth->size;
3064 if (text->reauth->e[val].authid &&
3065 !strcmp(username, text->reauth->e[val].authid)) {
3067 _plug_strdup(sparams->utils, text->reauth->e[val].realm,
3070 _plug_strdup(sparams->utils, (char *)text->reauth->e[val].nonce,
3073 _plug_strdup(sparams->utils, text->reauth->e[val].nonce,
3076 text->nonce_count = ++text->reauth->e[val].nonce_count;
3078 _plug_strdup(sparams->utils, (char *)text->reauth->e[val].cnonce,
3081 _plug_strdup(sparams->utils, text->reauth->e[val].cnonce,
3084 stext->timestamp = text->reauth->e[val].u.s.timestamp;
3162 username, 0, SASL_CU_AUTHID, oparams);
3175 username, 0, SASL_CU_AUTHZID, oparams);
3197 /* We didn't find this username */
3245 * H_URP = H({ username-value,":",realm-value,":",passwd}) sec->data
3254 DigestCalcSecret(sparams->utils, (unsigned char *)username,
3258 DigestCalcSecret(sparams->utils, username,
3263 * A1 = { H( { username-value, ":", realm-value, ":", passwd } ),
3479 * The "username-value", "realm-value" and "passwd" are encoded according
3481 * present, and all the characters of either "username-value" or "passwd"
3515 unsigned val = hash(username) % text->reauth->size;
3522 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
3523 text->reauth->e[val].authid = username; username = NULL;
3524 text->reauth->e[val].realm = text->realm; text->realm = NULL;
3525 text->reauth->e[val].nonce = text->nonce; text->nonce = NULL;
3526 text->reauth->e[val].cnonce = cnonce; cnonce = NULL;
3528 if (text->nonce_count <= text->reauth->e[val].nonce_count) {
3530 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
3533 text->reauth->e[val].nonce_count = text->nonce_count;
3534 text->reauth->e[val].u.s.timestamp = time(0);
3540 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
3552 if (username != NULL)
3553 sparams->utils->free (username);
3848 unsigned char *username,
3865 if(!username || !cnonce || !nonce || !ncvalue || !digesturi || !passwd) {
3882 username,
4031 resplen = strlen(oparams->authid) + strlen("username") + 5;
4037 sprintf(text->out_buf, "username=\"%s\"", oparams->authid);
4797 unsigned val;
4806 val = hash(params->serverFQDN) % text->reauth->size;
4808 if (text->reauth->e[val].u.c.serverFQDN &&
4809 !strcasecmp(text->reauth->e[val].u.c.serverFQDN,
4811 !strcmp(text->reauth->e[val].authid, oparams->authid)) {
4819 _plug_strdup(params->utils, text->reauth->e[val].realm,
4822 _plug_strdup(params->utils, (char *)text->reauth->e[val].nonce,
4825 _plug_strdup(params->utils, text->reauth->e[val].nonce,
4828 text->nonce_count = ++text->reauth->e[val].nonce_count;
4830 _plug_strdup(params->utils, (char *)text->reauth->e[val].cnonce,
4833 _plug_strdup(params->utils, text->reauth->e[val].cnonce,
4836 ctext->protection = text->reauth->e[val].u.c.protection;
4837 ctext->cipher = text->reauth->e[val].u.c.cipher;
4838 ctext->server_maxbuf = text->reauth->e[val].u.c.server_maxbuf;
4851 * (username | realm | nonce | cnonce | nonce-count | qop digest-uri |
4908 * (username | realm | nonce | cnonce | nonce-count | qop digest-uri |
5005 unsigned val = hash(params->serverFQDN) % text->reauth->size;
5010 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);
5012 &text->reauth->e[val].authid, NULL);
5013 text->reauth->e[val].realm = text->realm; text->realm = NULL;
5014 text->reauth->e[val].nonce = text->nonce; text->nonce = NULL;
5015 text->reauth->e[val].nonce_count = text->nonce_count;
5016 text->reauth->e[val].cnonce = text->cnonce; text->cnonce = NULL;
5018 &text->reauth->e[val].u.c.serverFQDN, NULL);
5019 text->reauth->e[val].u.c.protection = ctext->protection;
5020 text->reauth->e[val].u.c.cipher = ctext->cipher;
5021 text->reauth->e[val].u.c.server_maxbuf = ctext->server_maxbuf;
5032 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);
5056 unsigned val = hash(params->serverFQDN) % text->reauth->size;
5072 reauth = text->reauth->e[val].u.c.serverFQDN &&
5073 !strcasecmp(text->reauth->e[val].u.c.serverFQDN,
5108 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);