getpass(3) is not supported on Android.
[strongswan.git] / src / stroke / stroke.c
index 2d2ebe8..2abbd7b 100644 (file)
@@ -101,7 +101,11 @@ static int send_stroke_msg (stroke_msg_t *msg)
                        {
                                *pass = ' ';
                        }
+#ifdef HAVE_GETPASS
                        pass = getpass(buffer);
+#else
+                       pass = "";
+#endif
                        if (pass)
                        {
                                ignore_result(write(sock, pass, strlen(pass)));