summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-04-30 00:47:29 +1000
committerDamien Miller <djm@mindrot.org>2000-04-30 00:47:29 +1000
commit1bead335d7381b553bc4a13b3ea2b9dc09679123 (patch)
tree4ea95a94ee08154c459c92452062c00d64bb2170 /auth-passwd.c
parenteba71bab9bf01c0d688f829a8971f902732558df (diff)
- Merge HP-UX fixes and TCB support from Ged Lodder <lodder@yacc.com.au>
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/auth-passwd.c b/auth-passwd.c
index 662f85f63..e64e65682 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -11,7 +11,7 @@
11 11
12#ifndef USE_PAM 12#ifndef USE_PAM
13 13
14RCSID("$Id: auth-passwd.c,v 1.18 2000/04/16 02:31:49 damien Exp $"); 14RCSID("$Id: auth-passwd.c,v 1.19 2000/04/29 14:47:29 damien Exp $");
15 15
16#include "packet.h" 16#include "packet.h"
17#include "ssh.h" 17#include "ssh.h"
@@ -19,9 +19,12 @@ RCSID("$Id: auth-passwd.c,v 1.18 2000/04/16 02:31:49 damien Exp $");
19#include "xmalloc.h" 19#include "xmalloc.h"
20 20
21#ifdef WITH_AIXAUTHENTICATE 21#ifdef WITH_AIXAUTHENTICATE
22#include <login.h> 22# include <login.h>
23#endif
24#ifdef HAVE_HPUX_TRUSTED_SYSTEM_PW
25# include <hpsecurity.h>
26# include <prot.h>
23#endif 27#endif
24
25#ifdef HAVE_SHADOW_H 28#ifdef HAVE_SHADOW_H
26# include <shadow.h> 29# include <shadow.h>
27#endif 30#endif
@@ -108,7 +111,11 @@ auth_password(struct passwd * pw, const char *password)
108 else 111 else
109 encrypted_password = crypt(password, salt); 112 encrypted_password = crypt(password, salt);
110#else /* HAVE_MD5_PASSWORDS */ 113#else /* HAVE_MD5_PASSWORDS */
114# ifdef HAVE_HPUX_TRUSTED_SYSTEM_PW
115 encrypted_password = bigcrypt(password, salt);
116# else
111 encrypted_password = crypt(password, salt); 117 encrypted_password = crypt(password, salt);
118# endif /* HAVE_HPUX_TRUSTED_SYSTEM_PW */
112#endif /* HAVE_MD5_PASSWORDS */ 119#endif /* HAVE_MD5_PASSWORDS */
113 120
114 /* Authentication is accepted if the encrypted passwords are identical. */ 121 /* Authentication is accepted if the encrypted passwords are identical. */