Lines Matching refs:ctext

3947     client_context_t *ctext = (client_context_t *) text;  local
3958 switch (ctext->protection) {
3963 oparams->mech_ssf = ctext->cipher->ssf;
3965 nbits = ctext->cipher->n;
3966 text->cipher_enc = ctext->cipher->cipher_enc;
3967 text->cipher_dec = ctext->cipher->cipher_dec;
3968 text->cipher_free = ctext->cipher->cipher_free;
3969 text->cipher_init = ctext->cipher->cipher_init;
4016 ctext->password,
4085 if (ctext->cipher != NULL) {
4089 (unsigned char *) ctext->cipher->name,
4145 oparams->maxoutbuf = ctext->server_maxbuf - 4;
4147 oparams->maxoutbuf = ctext->server_maxbuf;
4209 static int parse_server_challenge(client_context_t *ctext, argument
4214 context_t *text = (context_t *) ctext;
4247 ctext->server_maxbuf = 65536; /* Default value for maxbuf */
4362 } else if (strcasecmp(name, "stale") == 0 && ctext->password) {
4364 if (ctext->free_password)
4365 _plug_free_secret(params->utils, &ctext->password);
4366 ctext->password = NULL;
4388 } else if (sscanf(value, "%u", &ctext->server_maxbuf) != 1) {
4399 if (ctext->server_maxbuf<=16) {
4524 (!ctext->cipher || (cipher->ssf > ctext->cipher->ssf))) {
4525 ctext->cipher = cipher;
4530 if (ctext->cipher) {
4532 ctext->protection = DIGEST_PRIVACY;
4545 if (ctext->cipher == NULL) {
4552 ctext->protection = DIGEST_INTEGRITY;
4559 ctext->protection = DIGEST_NOLAYER;
4605 static int ask_user_info(client_context_t *ctext, argument
4611 context_t *text = (context_t *) ctext;
4639 if (ctext->password == NULL) {
4640 pass_result = _plug_get_password(params->utils, &ctext->password,
4641 &ctext->free_password, prompt_need);
4696 _plug_make_prompts(params->utils, &ctext->h, prompt_need,
4698 convert_prompt(params->utils, &ctext->h,
4703 convert_prompt(params->utils, &ctext->h,
4708 convert_prompt(params->utils, &ctext->h,
4714 convert_prompt(params->utils, &ctext->h,
4787 digestmd5_client_mech_step1(client_context_t *ctext, argument
4796 context_t *text = (context_t *) ctext;
4803 result = ask_user_info(ctext, params, NULL, 0, prompt_need, oparams);
4837 ctext->protection = text->reauth->e[val].u.c.protection;
4838 ctext->cipher = text->reauth->e[val].u.c.cipher;
4839 ctext->server_maxbuf = text->reauth->e[val].u.c.server_maxbuf;
4867 digestmd5_client_mech_step2(client_context_t *ctext, argument
4876 context_t *text = (context_t *) ctext;
4890 result = parse_server_challenge(ctext, params, serverin, serverinlen,
4904 result = ask_user_info(ctext, params, realms, nrealm,
4938 digestmd5_client_mech_step3(client_context_t *ctext, argument
4947 context_t *text = (context_t *) ctext;
5020 text->reauth->e[val].u.c.protection = ctext->protection;
5021 text->reauth->e[val].u.c.cipher = ctext->cipher;
5022 text->reauth->e[val].u.c.server_maxbuf = ctext->server_maxbuf;
5056 client_context_t *ctext = (client_context_t *) conn_context; local
5079 return digestmd5_client_mech_step1(ctext, params,
5098 return digestmd5_client_mech_step3(ctext, params,
5124 ctext->cipher = NULL;
5128 return digestmd5_client_mech_step2(ctext, params,
5151 client_context_t *ctext = (client_context_t *) conn_context; local
5153 if (!ctext || !utils) return;
5156 convert_prompt(utils, &ctext->h, NULL);
5159 if (ctext->free_password) _plug_free_secret(utils, &ctext->password);