now uses AUTH_MAX_PASSWD_LENGTH if SPW_SECUREWARE

This commit is contained in:
Todd C. Miller
1996-07-14 01:04:26 +00:00
parent c6b64b90a2
commit 88cfad174e

View File

@@ -93,18 +93,23 @@
# undef _PASSWD_LEN # undef _PASSWD_LEN
# define _PASSWD_LEN 256 # define _PASSWD_LEN 256
#else #else
# ifndef _PASSWD_LEN # if defined(SHADOW_TYPE) && (SHADOW_TYPE == SPW_SECUREWARE)
# ifdef PASS_MAX # undef _PASSWD_LEN
# define _PASSWD_LEN PASS_MAX # define _PASSWD_LEN AUTH_MAX_PASSWD_LENGTH
# else # else
# ifdef HAVE_C2_SECURITY # ifndef _PASSWD_LEN
# define _PASSWD_LEN 24 # ifdef PASS_MAX
# define _PASSWD_LEN PASS_MAX
# else # else
# define _PASSWD_LEN 8 # ifdef HAVE_C2_SECURITY
# endif /* HAVE_C2_SECURITY */ # define _PASSWD_LEN 24
# endif /* PASS_MAX */ # else
# endif /* !_PASSWD_LEN */ # define _PASSWD_LEN 8
#endif /* HAVE_KERB4 || HAVE_DCE || HAVE_SKEY */ # endif /* HAVE_C2_SECURITY */
# endif /* PASS_MAX */
# endif /* !_PASSWD_LEN */
# endif /* HAVE_KERB4 || HAVE_DCE || HAVE_SKEY */
#endif /* SPW_SECUREWARE */
/* /*
* Some OS's lack these * Some OS's lack these