Lines Matching defs:prompt
382 * Trys to find the prompt with the lookingfor id in the prompt list
388 sasl_interact_t *prompt;
391 for (prompt = *promptlist; prompt->id != SASL_CB_LIST_END; ++prompt) {
392 if (prompt->id==lookingfor)
393 return prompt;
410 sasl_interact_t *prompt;
414 /* see if we were given the result in the prompt */
415 prompt = _plug_find_prompt(prompt_need, id);
416 if (prompt != NULL) {
419 if (required && !prompt->result) {
420 SETERROR(utils, "Unexpectedly missing a prompt result");
424 *result = prompt->result;
457 sasl_interact_t *prompt;
462 /* see if we were given the password in the prompt */
463 prompt = _plug_find_prompt(prompt_need, SASL_CB_PASS);
464 if (prompt != NULL) {
467 if (!prompt->result) {
468 SETERROR(utils, "Unexpectedly missing a prompt result");
474 prompt->len + 1);
480 (*password)->len=prompt->len;
481 memcpy((*password)->data, prompt->result, prompt->len);
508 * Retrieve the string given by the challenge prompt id.
517 sasl_interact_t *prompt;
521 /* see if we were given the password in the prompt */
522 prompt = _plug_find_prompt(prompt_need, id);
523 if (prompt != NULL) {
526 if (!prompt->result) {
527 SETERROR(utils, "Unexpectedly missing a prompt result");
531 *result = prompt->result;
563 sasl_interact_t *prompt;
567 /* see if we were given the result in the prompt */
568 prompt = _plug_find_prompt(prompt_need, SASL_CB_GETREALM);
569 if (prompt != NULL) {
572 if (!prompt->result) {
573 SETERROR(utils, "Unexpectedly missing a prompt result");
577 *realm = prompt->result;
600 * Make the requested prompts. (prompt==NULL means we don't want it)
648 (prompts)->prompt = user_prompt;
662 (prompts)->prompt = auth_prompt;
675 (prompts)->prompt = pass_prompt;
684 (prompts)->prompt = echo_prompt;
693 (prompts)->prompt = realm_prompt;
702 (prompts)->prompt = NULL;
854 char *prompt;
876 if (list->prompt)
877 utils->free(list->prompt);
908 list->prompt = buf;