This _WIN32-specific patch makes it possible to "wrap" OpenSSL in another
[openssl.git] / crypto / ui / ui_openssl.c
index 8eabb850ff9c70516b63e9113916d2f360acbbed..1c2dcc406e66237b21f3ce279bc4eea64c51b42c 100644 (file)
@@ -677,6 +677,8 @@ static int noecho_fgets(char *buf, int size, FILE *tty)
                size--;
 #ifdef WIN16TTY
                i=_inchar();
+#elif defined(_WIN32)
+               i=_getch();
 #else
                i=getch();
 #endif