summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 6bf10d2f9..f31641c28 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -36,10 +36,10 @@
36 36
37extern char *__progname; 37extern char *__progname;
38 38
39RCSID("$Id: auth-pam.c,v 1.47 2002/07/02 07:08:24 djm Exp $"); 39RCSID("$Id: auth-pam.c,v 1.48 2002/07/21 17:26:54 stevesk Exp $");
40 40
41#define NEW_AUTHTOK_MSG \ 41#define NEW_AUTHTOK_MSG \
42 "Warning: Your password has expired, please change it now" 42 "Warning: Your password has expired, please change it now."
43 43
44static int do_pam_conversation(int num_msg, const struct pam_message **msg, 44static int do_pam_conversation(int num_msg, const struct pam_message **msg,
45 struct pam_response **resp, void *appdata_ptr); 45 struct pam_response **resp, void *appdata_ptr);
@@ -55,7 +55,7 @@ static const char *__pampasswd = NULL;
55 55
56/* states for do_pam_conversation() */ 56/* states for do_pam_conversation() */
57enum { INITIAL_LOGIN, OTHER } pamstate = INITIAL_LOGIN; 57enum { INITIAL_LOGIN, OTHER } pamstate = INITIAL_LOGIN;
58/* remember whether pam_acct_mgmt() returned PAM_NEWAUTHTOK_REQD */ 58/* remember whether pam_acct_mgmt() returned PAM_NEW_AUTHTOK_REQD */
59static int password_change_required = 0; 59static int password_change_required = 0;
60/* remember whether the last pam_authenticate() succeeded or not */ 60/* remember whether the last pam_authenticate() succeeded or not */
61static int was_authenticated = 0; 61static int was_authenticated = 0;
@@ -326,7 +326,7 @@ int is_pam_password_change_required(void)
326 * Have user change authentication token if pam_acct_mgmt() indicated 326 * Have user change authentication token if pam_acct_mgmt() indicated
327 * it was expired. This needs to be called after an interactive 327 * it was expired. This needs to be called after an interactive
328 * session is established and the user's pty is connected to 328 * session is established and the user's pty is connected to
329 * stdin/stout/stderr. 329 * stdin/stdout/stderr.
330 */ 330 */
331void do_pam_chauthtok(void) 331void do_pam_chauthtok(void)
332{ 332{