diff options
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auth-pam.c b/auth-pam.c index d97d981c4..daa83c72a 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "ssh.h" | 28 | #include "ssh.h" |
29 | #include "xmalloc.h" | 29 | #include "xmalloc.h" |
30 | #include "log.h" | 30 | #include "log.h" |
31 | #include "auth.h" | ||
31 | #include "auth-pam.h" | 32 | #include "auth-pam.h" |
32 | #include "servconf.h" | 33 | #include "servconf.h" |
33 | #include "canohost.h" | 34 | #include "canohost.h" |
@@ -35,7 +36,7 @@ | |||
35 | 36 | ||
36 | extern char *__progname; | 37 | extern char *__progname; |
37 | 38 | ||
38 | RCSID("$Id: auth-pam.c,v 1.42 2002/02/05 01:40:47 djm Exp $"); | 39 | RCSID("$Id: auth-pam.c,v 1.43 2002/04/04 19:02:28 stevesk Exp $"); |
39 | 40 | ||
40 | #define NEW_AUTHTOK_MSG \ | 41 | #define NEW_AUTHTOK_MSG \ |
41 | "Warning: Your password has expired, please change it now" | 42 | "Warning: Your password has expired, please change it now" |
@@ -199,10 +200,11 @@ void do_pam_cleanup_proc(void *context) | |||
199 | } | 200 | } |
200 | 201 | ||
201 | /* Attempt password authentation using PAM */ | 202 | /* Attempt password authentation using PAM */ |
202 | int auth_pam_password(struct passwd *pw, const char *password) | 203 | int auth_pam_password(Authctxt *authctxt, const char *password) |
203 | { | 204 | { |
204 | extern ServerOptions options; | 205 | extern ServerOptions options; |
205 | int pam_retval; | 206 | int pam_retval; |
207 | struct passwd *pw = authctxt->pw; | ||
206 | 208 | ||
207 | do_pam_set_conv(&conv); | 209 | do_pam_set_conv(&conv); |
208 | 210 | ||