AC_CHECK_FUNCS(pthread_rwlock_init)
LIBS=$saved_LIBS
-AC_CHECK_FUNCS(prctl)
-
-AC_CHECK_FUNCS(mallinfo)
+AC_CHECK_FUNCS(prctl mallinfo getpass)
AC_CHECK_HEADERS(sys/sockio.h glob.h)
AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h netinet6/ipsec.h linux/udp.h)
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 */