# HG changeset patch # User Mike Frysinger # Date 1445438395 -28800 # Node ID a8f4dade70e5dfa455b9bb0e4cbc04c9459ecd5b # Parent 80b45616e1f33daed30ea4c5cab73a7c888b245d avoid getpass when not used some systems (like android's bionic) do not provide getpass. you can disable ENABLE_CLI_PASSWORD_AUTH & ENABLE_CLI_INTERACT_AUTH to avoid its use (and rely on pubkey auth), but the link still fails because the support file calls getpass. do not define this func if both of those auth methods are not used. diff -r 80b45616e1f3 -r a8f4dade70e5 cli-auth.c --- a/cli-auth.c Wed Oct 21 22:39:31 2015 +0800 +++ b/cli-auth.c Wed Oct 21 22:39:55 2015 +0800 @@ -324,6 +324,7 @@ return DROPBEAR_FAILURE; } +#if defined(ENABLE_CLI_PASSWORD_AUTH) || defined(ENABLE_CLI_INTERACT_AUTH) /* A helper for getpass() that exits if the user cancels. The returned * password is statically allocated by getpass() */ char* getpass_or_cancel(char* prompt) @@ -347,3 +348,4 @@ } return password; } +#endif