From f9661094e5e2854c37d24264b60a0da23ffd6deb Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 3 Jan 2002 10:30:56 +1100 Subject: [PATCH] - (djm) Use bigcrypt() on systems with SCO_PROTECTED_PW. Patch from Roger Cornelius --- ChangeLog | 6 +++++- auth-passwd.c | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b06563a15..d7bf09eff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20020103 + - (djm) Use bigcrypt() on systems with SCO_PROTECTED_PW. Patch from + Roger Cornelius + 20011229 - (djm) Apply Cygwin pointer deref fix from Corinna Vinschen Could be abused to guess valid usernames @@ -7114,4 +7118,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1713 2001/12/31 00:59:53 djm Exp $ +$Id: ChangeLog,v 1.1714 2002/01/02 23:30:56 djm Exp $ diff --git a/auth-passwd.c b/auth-passwd.c index 988297cb4..3546636aa 100644 --- a/auth-passwd.c +++ b/auth-passwd.c @@ -212,7 +212,11 @@ auth_password(Authctxt *authctxt, const char *password) else encrypted_password = crypt(password, salt); # else +# ifdef HAVE_SCO_PROTECTED_PW + encrypted_password = bigcrypt(password, salt); +# else encrypted_password = crypt(password, salt); +# endif /* HAVE_SCO_PROTECTED_PW */ # endif /* __hpux */ #endif /* HAVE_MD5_PASSWORDS */