summaryrefslogtreecommitdiffstats
path: root/source3/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-01-22 15:57:13 +1300
committerAndreas Schneider <asn@cryptomilk.org>2014-04-15 10:13:12 +0200
commit634cc8fdffbf83e339844a8da2812fae3964cd31 (patch)
treeba7a250f3483377eb6defa27e26dac981acd698e /source3/auth
parent6e8eb605454d663643738bc3bf797035022e3a20 (diff)
downloadsamba-634cc8fdffbf83e339844a8da2812fae3964cd31.tar.gz
samba-634cc8fdffbf83e339844a8da2812fae3964cd31.tar.xz
samba-634cc8fdffbf83e339844a8da2812fae3964cd31.zip
auth: Remove USE_BOTH_CRYPT_CALLS block from pass_check.c
This code is dead since the move to the WAF build system, but was set for HP-UX 9, 10 and 11 in the autoconf build system. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/pass_check.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c
index 2941bc07f8..6450559175 100644
--- a/source3/auth/pass_check.c
+++ b/source3/auth/pass_check.c
@@ -96,25 +96,6 @@ static NTSTATUS password_check(const char *user, const char *password, const voi
#endif /* ULTRIX_AUTH */
-#if defined(HAVE_BIGCRYPT) && defined(HAVE_CRYPT) && defined(USE_BOTH_CRYPT_CALLS)
-
- /*
- * Some systems have bigcrypt in the C library but might not
- * actually use it for the password hashes (HPUX 10.20) is
- * a noteable example. So we try bigcrypt first, followed
- * by crypt.
- */
-
- if (strcmp(bigcrypt(password, get_this_salt()), get_this_crypted()) == 0)
- return NT_STATUS_OK;
- else
- ret = (strcmp((char *)crypt(password, get_this_salt()), get_this_crypted()) == 0);
- if (ret) {
- return NT_STATUS_OK;
- } else {
- return NT_STATUS_WRONG_PASSWORD;
- }
-#else /* HAVE_BIGCRYPT && HAVE_CRYPT && USE_BOTH_CRYPT_CALLS */
#ifdef HAVE_BIGCRYPT
ret = (strcmp(bigcrypt(password, get_this_salt()), get_this_crypted()) == 0);
@@ -136,7 +117,6 @@ static NTSTATUS password_check(const char *user, const char *password, const voi
return NT_STATUS_WRONG_PASSWORD;
}
#endif /* HAVE_CRYPT */
-#endif /* HAVE_BIGCRYPT && HAVE_CRYPT && USE_BOTH_CRYPT_CALLS */
#endif /* WITH_PAM */
}