Lines Matching refs:prompts
599 * Make the requested prompts. (prompt==NULL means we don't want it)
616 sasl_interact_t *prompts;
625 SETERROR( utils, "make_prompts() called with no actual prompts" );
630 prompts = utils->malloc(alloc_size);
631 if (!prompts) {
635 memset(prompts, 0, alloc_size);
637 *prompts_res = prompts;
640 (prompts)->id = SASL_CB_USER;
642 (prompts)->challenge = convert_prompt(utils, h,
645 (prompts)->challenge = "Authorization Name";
647 (prompts)->prompt = user_prompt;
648 (prompts)->defresult = user_def;
650 prompts++;
654 (prompts)->id = SASL_CB_AUTHNAME;
656 (prompts)->challenge = convert_prompt(utils, h,
659 (prompts)->challenge = "Authentication Name";
661 (prompts)->prompt = auth_prompt;
662 (prompts)->defresult = auth_def;
664 prompts++;
668 (prompts)->id = SASL_CB_PASS;
670 (prompts)->challenge = convert_prompt(utils, h, gettext("Password"));
672 (prompts)->challenge = "Password";
674 (prompts)->prompt = pass_prompt;
675 (prompts)->defresult = pass_def;
677 prompts++;
681 (prompts)->id = SASL_CB_ECHOPROMPT;
682 (prompts)->challenge = echo_chal;
683 (prompts)->prompt = echo_prompt;
684 (prompts)->defresult = echo_def;
686 prompts++;
690 (prompts)->id = SASL_CB_GETREALM;
691 (prompts)->challenge = realm_chal;
692 (prompts)->prompt = realm_prompt;
693 (prompts)->defresult = realm_def;
695 prompts++;
699 (prompts)->id = SASL_CB_LIST_END;
700 (prompts)->challenge = NULL;
701 (prompts)->prompt = NULL;
702 (prompts)->defresult = NULL;