getpass(3) is not supported on Android.

No replacement yet.
This commit is contained in:
Tobias Brunner
2011-10-11 16:30:20 +02:00
parent eae49aff88
commit 2421ac9e98
3 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -797,12 +797,14 @@ static void check_end(whack_end_t *this, whack_end_t *that,
static void get_secret(int sock)
{
const char *buf, *secret;
const char *buf = NULL, *secret;
int len;
fflush(stdout);
usleep(20000); /* give fflush time for flushing */
#ifdef HAVE_GETPASS
buf = getpass("Enter: ");
#endif
secret = (buf == NULL)? "" : buf;
/* send the secret to pluto */