ENABLE_AFS_STRING_TO_KEY requires crypt()

If crypt() is unavailable then DES_AFS3_string_to_key() cannot be
implemented for passwords up to 8 characters in length.  Do not
advertise support for "afs3-salt" when crypt() is missing.
This commit is contained in:
Jeffrey Altman
2024-06-17 11:09:07 -04:00
parent b09f3b3c28
commit 347822cf76

View File

@@ -35,6 +35,10 @@
#ifdef HEIM_WEAK_CRYPTO
#if !defined(HAVE_CRYPT)
# undef ENABLE_AFS_STRING_TO_KEY
#endif
#ifdef ENABLE_AFS_STRING_TO_KEY
/* This defines the Andrew string_to_key function. It accepts a password