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, 7 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c
index ab20782f2..5bb30025d 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -29,7 +29,7 @@
29#include "xmalloc.h" 29#include "xmalloc.h"
30#include "servconf.h" 30#include "servconf.h"
31 31
32RCSID("$Id: auth-pam.c,v 1.16 2000/10/14 05:23:11 djm Exp $"); 32RCSID("$Id: auth-pam.c,v 1.17 2000/10/14 13:36:13 stevesk Exp $");
33 33
34#define NEW_AUTHTOK_MSG \ 34#define NEW_AUTHTOK_MSG \
35 "Warning: Your password has expired, please change it now" 35 "Warning: Your password has expired, please change it now"
@@ -261,6 +261,12 @@ void do_pam_setcred()
261 } 261 }
262} 262}
263 263
264/* accessor function for file scope static variable */
265int pam_password_change_required(void)
266{
267 return password_change_required;
268}
269
264/* 270/*
265 * Have user change authentication token if pam_acct_mgmt() indicated 271 * Have user change authentication token if pam_acct_mgmt() indicated
266 * it was expired. This needs to be called after an interactive 272 * it was expired. This needs to be called after an interactive