diff options
Diffstat (limited to 'auth-passwd.c')
-rw-r--r-- | auth-passwd.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/auth-passwd.c b/auth-passwd.c index 058dde82b..0311a493e 100644 --- a/auth-passwd.c +++ b/auth-passwd.c | |||
@@ -9,9 +9,9 @@ | |||
9 | 9 | ||
10 | #include "includes.h" | 10 | #include "includes.h" |
11 | 11 | ||
12 | #ifndef HAVE_LIBPAM | 12 | #ifndef USE_PAM |
13 | 13 | ||
14 | RCSID("$Id: auth-passwd.c,v 1.11 1999/12/24 23:11:29 damien Exp $"); | 14 | RCSID("$Id: auth-passwd.c,v 1.12 1999/12/28 04:09:36 damien Exp $"); |
15 | 15 | ||
16 | #include "packet.h" | 16 | #include "packet.h" |
17 | #include "ssh.h" | 17 | #include "ssh.h" |
@@ -19,12 +19,14 @@ RCSID("$Id: auth-passwd.c,v 1.11 1999/12/24 23:11:29 damien Exp $"); | |||
19 | #include "xmalloc.h" | 19 | #include "xmalloc.h" |
20 | 20 | ||
21 | #ifdef HAVE_SHADOW_H | 21 | #ifdef HAVE_SHADOW_H |
22 | #include <shadow.h> | 22 | # include <shadow.h> |
23 | #endif | ||
24 | |||
25 | #ifdef HAVE_MD5_PASSWORDS | ||
26 | #include "md5crypt.h" | ||
27 | #endif | 23 | #endif |
24 | #if defined(HAVE_CRYPT_H) && !defined(CRYPT_H_BREAKS_BUILD) | ||
25 | # include <crypt.h> | ||
26 | #endif /* defined(HAVE_CRYPT_H) && !defined(CRYPT_H_BREAKS_BUILD) */ | ||
27 | #if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) | ||
28 | # include "md5crypt.h" | ||
29 | #endif /* defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) */ | ||
28 | 30 | ||
29 | /* | 31 | /* |
30 | * Tries to authenticate the user using password. Returns true if | 32 | * Tries to authenticate the user using password. Returns true if |
@@ -101,4 +103,4 @@ auth_password(struct passwd * pw, const char *password) | |||
101 | /* Authentication is accepted if the encrypted passwords are identical. */ | 103 | /* Authentication is accepted if the encrypted passwords are identical. */ |
102 | return (strcmp(encrypted_password, pw_password) == 0); | 104 | return (strcmp(encrypted_password, pw_password) == 0); |
103 | } | 105 | } |
104 | #endif /* !HAVE_LIBPAM */ | 106 | #endif /* !USE_PAM */ |