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 662f85f6..e64e6568 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -11,7 +11,7 @@
#ifndef USE_PAM
-RCSID("$Id: auth-passwd.c,v 1.18 2000/04/16 02:31:49 damien Exp $");
+RCSID("$Id: auth-passwd.c,v 1.19 2000/04/29 14:47:29 damien Exp $");
#include "packet.h"
#include "ssh.h"
@@ -19,9 +19,12 @@ RCSID("$Id: auth-passwd.c,v 1.18 2000/04/16 02:31:49 damien Exp $");
#include "xmalloc.h"
#ifdef WITH_AIXAUTHENTICATE
-#include <login.h>
+# include <login.h>
+#endif
+#ifdef HAVE_HPUX_TRUSTED_SYSTEM_PW
+# include <hpsecurity.h>
+# include <prot.h>
#endif
-
#ifdef HAVE_SHADOW_H
# include <shadow.h>
#endif
@@ -108,7 +111,11 @@ auth_password(struct passwd * pw, const char *password)
else
encrypted_password = crypt(password, salt);
#else /* HAVE_MD5_PASSWORDS */
+# ifdef HAVE_HPUX_TRUSTED_SYSTEM_PW
+ encrypted_password = bigcrypt(password, salt);
+# else
encrypted_password = crypt(password, salt);
+# endif /* HAVE_HPUX_TRUSTED_SYSTEM_PW */
#endif /* HAVE_MD5_PASSWORDS */
/* Authentication is accepted if the encrypted passwords are identical. */