Lines Matching refs:prompt

381  * Trys to find the prompt with the lookingfor id in the prompt list
387 sasl_interact_t *prompt;
390 for (prompt = *promptlist; prompt->id != SASL_CB_LIST_END; ++prompt) {
391 if (prompt->id==lookingfor)
392 return prompt;
409 sasl_interact_t *prompt;
413 /* see if we were given the result in the prompt */
414 prompt = _plug_find_prompt(prompt_need, id);
415 if (prompt != NULL) {
418 if (required && !prompt->result) {
419 SETERROR(utils, "Unexpectedly missing a prompt result");
423 *result = prompt->result;
456 sasl_interact_t *prompt;
461 /* see if we were given the password in the prompt */
462 prompt = _plug_find_prompt(prompt_need, SASL_CB_PASS);
463 if (prompt != NULL) {
466 if (!prompt->result) {
467 SETERROR(utils, "Unexpectedly missing a prompt result");
473 prompt->len + 1);
479 (*password)->len=prompt->len;
480 memcpy((*password)->data, prompt->result, prompt->len);
507 * Retrieve the string given by the challenge prompt id.
516 sasl_interact_t *prompt;
520 /* see if we were given the password in the prompt */
521 prompt = _plug_find_prompt(prompt_need, id);
522 if (prompt != NULL) {
525 if (!prompt->result) {
526 SETERROR(utils, "Unexpectedly missing a prompt result");
530 *result = prompt->result;
562 sasl_interact_t *prompt;
566 /* see if we were given the result in the prompt */
567 prompt = _plug_find_prompt(prompt_need, SASL_CB_GETREALM);
568 if (prompt != NULL) {
571 if (!prompt->result) {
572 SETERROR(utils, "Unexpectedly missing a prompt result");
576 *realm = prompt->result;
599 * Make the requested prompts. (prompt==NULL means we don't want it)
647 (prompts)->prompt = user_prompt;
661 (prompts)->prompt = auth_prompt;
674 (prompts)->prompt = pass_prompt;
683 (prompts)->prompt = echo_prompt;
692 (prompts)->prompt = realm_prompt;
701 (prompts)->prompt = NULL;
853 char *prompt;
875 if (list->prompt)
876 utils->free(list->prompt);
907 list->prompt = buf;