From: Todd C. Miller Date: Fri, 26 Jul 1996 03:44:48 +0000 (+0000) Subject: use SHADOW_TYPE instead of HAVE_C2_SECURITY X-Git-Tag: SUDO_1_5_0~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9d2f89231d3b5d798186c024fa7f1f4c5fb58a3;p=sudo use SHADOW_TYPE instead of HAVE_C2_SECURITY --- diff --git a/compat.h b/compat.h index 29aedea5a..0b64da839 100644 --- a/compat.h +++ b/compat.h @@ -93,7 +93,7 @@ # undef _PASSWD_LEN # define _PASSWD_LEN 256 #else -# if defined(SHADOW_TYPE) && (SHADOW_TYPE == SPW_SECUREWARE) +# if (SHADOW_TYPE == SPW_SECUREWARE) # undef _PASSWD_LEN # define _PASSWD_LEN AUTH_MAX_PASSWD_LENGTH # else @@ -101,11 +101,11 @@ # ifdef PASS_MAX # define _PASSWD_LEN PASS_MAX # else -# ifdef HAVE_C2_SECURITY +# if (SHADOW_TYPE != SPW_NONE) # define _PASSWD_LEN 24 # else # define _PASSWD_LEN 8 -# endif /* HAVE_C2_SECURITY */ +# endif /* SHADOW_TYPE != SPW_NONE */ # endif /* PASS_MAX */ # endif /* !_PASSWD_LEN */ # endif /* HAVE_KERB4 || HAVE_DCE || HAVE_SKEY */