101
107
(void) sprintf(prompt, "Password for %s: ", princ_name);
103
109
if (try_first_pass || use_first_pass)
109
if (pamret = get_user_info(pamh, prompt, PAM_PROMPT_ECHO_OFF, &pass)) {
115
if ((pamret = get_user_info(pamh, prompt, PAM_PROMPT_ECHO_OFF,
110
117
DLOG("get_user_info()", pam_strerror(pamh, pamret));
111
118
pamret = PAM_SERVICE_ERR;
114
121
/* We have to free pass. */
116
123
DLOG("pam_set_item()", pam_strerror(pamh, pamret));
118
125
pamret = PAM_SERVICE_ERR;