Lines Matching +defs:val +defs:context

155 struct context;
158 typedef int cipher_function_t(struct context *,
166 typedef int cipher_init_t(struct context *, char [16],
169 typedef int cipher_init_t(struct context *, unsigned char [16],
173 typedef void cipher_free_t(struct context *);
211 /* context that stores info */
212 typedef struct context {
292 unsigned val = 0;
297 val ^= i;
298 val <<= 1;
302 return val;
832 /* allocate enc & dec context */
836 /* setup enc context */
848 /* setup dec context */
959 /* allocate enc context */
963 /* setup enc context */
971 /* setup dec context */
1098 /* free rc4 context structures */
1117 /* allocate rc4 context structures */
1295 /* allocate rc4 context structures */
1729 digestmd5_privacy_encode(void *context,
1735 context_t *text = (context_t *) context;
1744 if(!context || !invec || !numiov || !output || !outputlen) {
1816 digestmd5_privacy_decode_once(void *context,
1822 context_t *text = (context_t *) context;
1990 static int digestmd5_privacy_decode(void *context,
1994 context_t *text = (context_t *) context;
1997 ret = _plug_decode(text->utils, context, input, inputlen,
2007 digestmd5_integrity_encode(void *context,
2013 context_t *text = (context_t *) context;
2020 if(!context || !invec || !numiov || !output || !outputlen) {
2171 digestmd5_integrity_decode_once(void *context,
2177 context_t *text = (context_t *) context;
2251 static int digestmd5_integrity_decode(void *context,
2255 context_t *text = (context_t *) context;
2258 ret = _plug_decode(text->utils, context, input, inputlen,
2281 /* free the stuff in the context */
3036 * username-value = qdstr-val cnonce = "cnonce" "=" <">
3037 * cnonce-value <"> cnonce-value = qdstr-val nonce-count = "nc"
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;
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);
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;
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);