diff options
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-pam.c b/auth-pam.c index 2767eb156..08ba132a4 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | extern char *__progname; | 36 | extern char *__progname; |
37 | 37 | ||
38 | RCSID("$Id: auth-pam.c,v 1.38 2001/10/28 11:33:48 djm Exp $"); | 38 | RCSID("$Id: auth-pam.c,v 1.39 2001/10/28 11:36:56 djm Exp $"); |
39 | 39 | ||
40 | #define NEW_AUTHTOK_MSG \ | 40 | #define NEW_AUTHTOK_MSG \ |
41 | "Warning: Your password has expired, please change it now" | 41 | "Warning: Your password has expired, please change it now" |
@@ -87,7 +87,7 @@ int do_pam_authenticate(int flags) | |||
87 | * messages with into __pam_msg. This is used during initial | 87 | * messages with into __pam_msg. This is used during initial |
88 | * authentication to bypass the normal PAM password prompt. | 88 | * authentication to bypass the normal PAM password prompt. |
89 | * | 89 | * |
90 | * OTHER mode handles PAM_PROMPT_ECHO_OFF with read_passphrase(prompt, 1) | 90 | * OTHER mode handles PAM_PROMPT_ECHO_OFF with read_passphrase() |
91 | * and outputs messages to stderr. This mode is used if pam_chauthtok() | 91 | * and outputs messages to stderr. This mode is used if pam_chauthtok() |
92 | * is called to update expired passwords. | 92 | * is called to update expired passwords. |
93 | */ | 93 | */ |
@@ -146,9 +146,9 @@ static int do_pam_conversation(int num_msg, const struct pam_message **msg, | |||
146 | reply[count].resp_retcode = PAM_SUCCESS; | 146 | reply[count].resp_retcode = PAM_SUCCESS; |
147 | break; | 147 | break; |
148 | case PAM_PROMPT_ECHO_OFF: | 148 | case PAM_PROMPT_ECHO_OFF: |
149 | reply[count].resp = xstrdup( | 149 | reply[count].resp = |
150 | read_passphrase(PAM_MSG_MEMBER(msg, count, | 150 | read_passphrase(PAM_MSG_MEMBER(msg, count, |
151 | msg), 1)); | 151 | msg), RP_ALLOW_STDIN)); |
152 | reply[count].resp_retcode = PAM_SUCCESS; | 152 | reply[count].resp_retcode = PAM_SUCCESS; |
153 | break; | 153 | break; |
154 | case PAM_ERROR_MSG: | 154 | case PAM_ERROR_MSG: |