fix default build when crypt() is unavailable

if the system doesn't support crypt.h/crypt, then ENABLE_SVR_PASSWORD_AUTH
cannot work.  rather than default this to on all the time, do so only when
support for the header is found.
This commit is contained in:
Mike Frysinger 2015-10-21 22:40:11 +08:00
parent 93c54fe6f6
commit 78b9cecb52

View File

@ -206,7 +206,10 @@ If you test it please contact the Dropbear author */
* PAM challenge/response.
* You can't enable both PASSWORD and PAM. */
/* This requires crypt.h & crypt. */
#ifdef HAVE_CRYPT_H
#define ENABLE_SVR_PASSWORD_AUTH
#endif
/* PAM requires ./configure --enable-pam */
/*#define ENABLE_SVR_PAM_AUTH */
#define ENABLE_SVR_PUBKEY_AUTH