Lines Matching defs:ctext

3946     client_context_t *ctext = (client_context_t *) text;
3957 switch (ctext->protection) {
3962 oparams->mech_ssf = ctext->cipher->ssf;
3964 nbits = ctext->cipher->n;
3965 text->cipher_enc = ctext->cipher->cipher_enc;
3966 text->cipher_dec = ctext->cipher->cipher_dec;
3967 text->cipher_free = ctext->cipher->cipher_free;
3968 text->cipher_init = ctext->cipher->cipher_init;
4015 ctext->password,
4084 if (ctext->cipher != NULL) {
4088 (unsigned char *) ctext->cipher->name,
4144 oparams->maxoutbuf = ctext->server_maxbuf - 4;
4146 oparams->maxoutbuf = ctext->server_maxbuf;
4208 static int parse_server_challenge(client_context_t *ctext,
4213 context_t *text = (context_t *) ctext;
4246 ctext->server_maxbuf = 65536; /* Default value for maxbuf */
4361 } else if (strcasecmp(name, "stale") == 0 && ctext->password) {
4363 if (ctext->free_password)
4364 _plug_free_secret(params->utils, &ctext->password);
4365 ctext->password = NULL;
4387 } else if (sscanf(value, "%u", &ctext->server_maxbuf) != 1) {
4398 if (ctext->server_maxbuf<=16) {
4523 (!ctext->cipher || (cipher->ssf > ctext->cipher->ssf))) {
4524 ctext->cipher = cipher;
4529 if (ctext->cipher) {
4531 ctext->protection = DIGEST_PRIVACY;
4544 if (ctext->cipher == NULL) {
4551 ctext->protection = DIGEST_INTEGRITY;
4558 ctext->protection = DIGEST_NOLAYER;
4604 static int ask_user_info(client_context_t *ctext,
4610 context_t *text = (context_t *) ctext;
4638 if (ctext->password == NULL) {
4639 pass_result = _plug_get_password(params->utils, &ctext->password,
4640 &ctext->free_password, prompt_need);
4695 _plug_make_prompts(params->utils, &ctext->h, prompt_need,
4697 convert_prompt(params->utils, &ctext->h,
4702 convert_prompt(params->utils, &ctext->h,
4707 convert_prompt(params->utils, &ctext->h,
4713 convert_prompt(params->utils, &ctext->h,
4786 digestmd5_client_mech_step1(client_context_t *ctext,
4795 context_t *text = (context_t *) ctext;
4802 result = ask_user_info(ctext, params, NULL, 0, prompt_need, oparams);
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;
4866 digestmd5_client_mech_step2(client_context_t *ctext,
4875 context_t *text = (context_t *) ctext;
4889 result = parse_server_challenge(ctext, params, serverin, serverinlen,
4903 result = ask_user_info(ctext, params, realms, nrealm,
4937 digestmd5_client_mech_step3(client_context_t *ctext,
4946 context_t *text = (context_t *) ctext;
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;
5055 client_context_t *ctext = (client_context_t *) conn_context;
5078 return digestmd5_client_mech_step1(ctext, params,
5096 return digestmd5_client_mech_step3(ctext, params,
5122 ctext->cipher = NULL;
5125 return digestmd5_client_mech_step2(ctext, params,
5148 client_context_t *ctext = (client_context_t *) conn_context;
5150 if (!ctext || !utils) return;
5153 convert_prompt(utils, &ctext->h, NULL);
5156 if (ctext->free_password) _plug_free_secret(utils, &ctext->password);