]> andersk Git - openssh.git/blobdiff - auth-pam.c
Whoops, forgot changelog
[openssh.git] / auth-pam.c
index d6bcbabeae4b860f6c9fd667a7b6f2c73ae3c3c1..a9cd459a7355a8503630bedc0b60aa30114124fa 100644 (file)
@@ -249,7 +249,7 @@ void do_pam_session(char *username, const char *ttyname)
 }
 
 /* Set PAM credentials */ 
-void do_pam_setcred()
+void do_pam_setcred(void)
 {
        int pam_retval;
  
@@ -257,17 +257,23 @@ void do_pam_setcred()
        pam_retval = pam_setcred(pamh, PAM_ESTABLISH_CRED);
        if (pam_retval != PAM_SUCCESS) {
                fatal("PAM setcred failed[%d]: %.200s", 
-                       pam_setcred, PAM_STRERROR(pamh, pam_retval));
+                       pam_retval, PAM_STRERROR(pamh, pam_retval));
        }
 }
 
+/* accessor function for file scope static variable */
+int pam_password_change_required(void)
+{
+       return password_change_required;
+}
+
 /* 
  * Have user change authentication token if pam_acct_mgmt() indicated
  * it was expired.  This needs to be called after an interactive
  * session is established and the user's pty is connected to
  * stdin/stout/stderr.
  */
-void do_pam_chauthtok()
+void do_pam_chauthtok(void)
 {
        int pam_retval;
 
This page took 0.454519 seconds and 4 git commands to generate.