]> granicus.if.org Git - sudo/commitdiff
set _PASSWD_LEN to 256 for any of KERB4, DCE, SKEY
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Nov 1995 23:46:33 +0000 (23:46 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Nov 1995 23:46:33 +0000 (23:46 +0000)
compat.h

index ae3d5d0033c5128bcdc16194c9f42cc5ff100838..cd98acb03972c24ac2f80f5bf0b9dbe1a4dd9648 100644 (file)
--- a/compat.h
+++ b/compat.h
 #endif /* S_IRWXU */
 
 /*
- * For kerberos, max password len is 128
+ * For alternate password schemes we need longer passwords
  */
-#ifdef HAVE_KERB4
-#  undef _PASSWD_LEN
-#  define _PASSWD_LEN  128
-#endif /* HAVE_KERB4 */
-#ifdef HAVE_DCE
+#if defined(HAVE_KERB4) || defined(HAVE_DCE) || defined(HAVE_SKEY)
 #  undef _PASSWD_LEN
 #  define _PASSWD_LEN  256
-#endif /* HAVE_DCE */
+#endif /* HAVE_KERB4 || HAVE_DCE || HAVE_SKEY */
 
 /*
  * Some OS's lack these