auth: Remove linux_bigcrypt support from pass_check.c
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 Jan 2014 02:54:15 +0000 (15:54 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 15 Apr 2014 08:13:12 +0000 (10:13 +0200)
This is dead code, and probably has been for quite some time.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/auth/pass_check.c
source4/auth/ntlm/auth_unix.c

index a5e03202b88b7d5db2aadef42a5158915827e3c3..2941bc07f81d1c6d679e7369367b7ec7e18d93ea 100644 (file)
@@ -67,30 +67,6 @@ static const char *set_this_crypted(const char *newcrypted)
 
 
 
-#ifdef LINUX_BIGCRYPT
-/****************************************************************************
-an enhanced crypt for Linux to handle password longer than 8 characters
-****************************************************************************/
-static int linux_bigcrypt(char *password, char *salt1, char *crypted)
-{
-#define LINUX_PASSWORD_SEG_CHARS 8
-       char salt[3];
-       int i;
-
-       StrnCpy(salt, salt1, 2);
-       crypted += 2;
-
-       for (i = strlen(password); i > 0; i -= LINUX_PASSWORD_SEG_CHARS) {
-               char *p = crypt(password, salt) + 2;
-               if (strncmp(p, crypted, LINUX_PASSWORD_SEG_CHARS) != 0)
-                       return (0);
-               password += LINUX_PASSWORD_SEG_CHARS;
-               crypted += strlen(p);
-       }
-
-       return (1);
-}
-#endif
 
 
 
@@ -119,14 +95,6 @@ static NTSTATUS password_check(const char *user, const char *password, const voi
 
 #endif /* ULTRIX_AUTH */
 
-#ifdef LINUX_BIGCRYPT
-       ret = (linux_bigcrypt(password, get_this_salt(), get_this_crypted()));
-        if (ret) {
-               return NT_STATUS_OK;
-       } else {
-               return NT_STATUS_WRONG_PASSWORD;
-       }
-#endif /* LINUX_BIGCRYPT */
 
 #if defined(HAVE_BIGCRYPT) && defined(HAVE_CRYPT) && defined(USE_BOTH_CRYPT_CALLS)
 
index 169e9abf8b130354757b865cd09f1b1dd5575dac..d1f62858eae31c2350d79363052caf6e5ac75774 100644 (file)
@@ -542,14 +542,6 @@ static NTSTATUS password_check(const char *username, const char *password,
        
 #endif /* ULTRIX_AUTH */
        
-#ifdef LINUX_BIGCRYPT
-       ret = (linux_bigcrypt(password, salt, crypted));
-        if (ret) {
-               return NT_STATUS_OK;
-       } else {
-               return NT_STATUS_WRONG_PASSWORD;
-       }
-#endif /* LINUX_BIGCRYPT */
        
 #if defined(HAVE_BIGCRYPT) && defined(HAVE_CRYPT) && defined(USE_BOTH_CRYPT_CALLS)