Lines Matching full:prompt

2  * Prompt users for information.
30 * Build a password prompt.
32 * The default prompt is simply "Password:". Optionally, a string describing
48 * passes the prompt back to the client.
59 char *prompt, *tmp; in build_password_prompt() local
72 /* Build the part of the prompt without the principal name. */ in build_password_prompt()
88 retval = asprintf(&prompt, "%s for %s: ", tmp, principal); in build_password_prompt()
90 retval = asprintf(&prompt, "%s: ", tmp); in build_password_prompt()
98 return prompt; in build_password_prompt()
108 * Prompt for a password.
119 char *prompt; in pamk5_get_password() local
122 prompt = build_password_prompt(args, prefix); in pamk5_get_password()
123 if (prompt == NULL) in pamk5_get_password()
125 retval = pamk5_conv(args, prompt, PAM_PROMPT_ECHO_OFF, password); in pamk5_get_password()
126 free(prompt); in pamk5_get_password()
269 * Format a Kerberos prompt into a PAM prompt. Takes a krb5_prompt as input
270 * and writes the resulting PAM prompt into a struct pam_message.
273 format_prompt(krb5_prompt *prompt, struct pam_message *message) in format_prompt() argument
275 size_t len = strlen(prompt->prompt); in format_prompt()
285 has_colon = (len > 2 && memcmp(&prompt->prompt[len - 2], ": ", 2) == 0); in format_prompt()
287 retval = asprintf((char **) &message->msg, "%s%s", prompt->prompt, colon); in format_prompt()
290 style = prompt->hidden ? PAM_PROMPT_ECHO_OFF : PAM_PROMPT_ECHO_ON; in format_prompt()
318 * character into the prompt data buffer for MIT Kerberos with the in record_prompt_answers()
341 * It is used by the Kerberos library to prompt for a password if need be, and
342 * also to prompt for password changes if the password was expired.
352 * struct contains the prompt, a flag saying whether to suppress echoing of
353 * what the user types for that prompt, and a buffer into which to store the