aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ui
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-12-22 13:54:12 +0000
committerAndy Polyakov <appro@openssl.org>2008-12-22 13:54:12 +0000
commite527201f6be3c295358bcc8b6bafec598f02dc97 (patch)
treee3b3ea15baf24f50465ad652b13f418dcc26464d /crypto/ui
parent70531c147c2d38b03f109312a270ccc0af6cf8d6 (diff)
downloadopenssl-e527201f6be3c295358bcc8b6bafec598f02dc97.tar.gz
This _WIN32-specific patch makes it possible to "wrap" OpenSSL in another
.DLL, in particular static build. The issue has been discussed in RT#1230 and later on openssl-dev, and mutually exclusive approaches were suggested. This completes compromise solution suggested in RT#1230. PR: 1230
Diffstat (limited to 'crypto/ui')
-rw-r--r--crypto/ui/ui_openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c
index 8eabb850ff..1c2dcc406e 100644
--- a/crypto/ui/ui_openssl.c
+++ b/crypto/ui/ui_openssl.c
@@ -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