Removed uneeded crypt() from auth.c and session.c

This commit is contained in:
Sylvain Rochet 2012-05-20 20:04:05 +02:00
parent de70b710af
commit f5dc6e80c0
2 changed files with 5 additions and 0 deletions

View File

@ -1388,6 +1388,8 @@ check_passwd(unit, auser, userlen, apasswd, passwdlen, msg)
int passwdlen; int passwdlen;
char **msg; char **msg;
{ {
return UPAP_AUTHNAK;
#if 0
int ret; int ret;
char *filename; char *filename;
FILE *f; FILE *f;
@ -1498,6 +1500,7 @@ check_passwd(unit, auser, userlen, apasswd, passwdlen, msg)
BZERO(secret, sizeof(secret)); BZERO(secret, sizeof(secret));
return ret; return ret;
#endif
} }
/* /*

View File

@ -347,12 +347,14 @@ session_start(flags, user, passwd, ttyName, msg)
#endif /* #ifdef HAS_SHADOW */ #endif /* #ifdef HAS_SHADOW */
#if 0
/* /*
* If no passwd, don't let them login if we're authenticating. * If no passwd, don't let them login if we're authenticating.
*/ */
if (pw->pw_passwd == NULL || strlen(pw->pw_passwd) < 2 if (pw->pw_passwd == NULL || strlen(pw->pw_passwd) < 2
|| strcmp(crypt(passwd, pw->pw_passwd), pw->pw_passwd) != 0) || strcmp(crypt(passwd, pw->pw_passwd), pw->pw_passwd) != 0)
return SESSION_FAILED; return SESSION_FAILED;
#endif
} }
#endif /* #ifdef USE_PAM */ #endif /* #ifdef USE_PAM */