[patch] fix default build when crypt() is unavailable
Mike Frysinger
vapier at gentoo.org
Sat Oct 10 07:28:05 AWST 2015
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.
-mike
svr-authpasswd.o:svr-authpasswd.c:function svr_auth_password: error: undefined reference to 'crypt'
collect2: error: ld returned 1 exit status
--- a/options.h Tue Sep 29 22:19:11 2015 +0800
+++ b/options.h Fri Oct 09 19:21:35 2015 -0400
@@ -206,7 +206,10 @@ If you test it please contact the Dropbe
* 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
Url : http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20151009/134c723a/attachment.sig
More information about the Dropbear
mailing list