GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — openssl: fix keypress requirement in apps on win32 · nodejs/node@dd28596

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/openssl/openssl/apps
    • s_client.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/openssl/openssl/apps/s_client.c‎

Copy file name to clipboardExpand all lines: deps/openssl/openssl/apps/s_client.c
+13-7Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ typedef unsigned int u_int;
180180
# include <fcntl.h>
181181
#endif
182182

183+
/* Use Windows API with STD_INPUT_HANDLE when checking for input?
184+
Don't look at OPENSSL_SYS_MSDOS for this, since it is always defined if
185+
OPENSSL_SYS_WINDOWS is defined */
186+
#if defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_WINCE) && defined(STD_INPUT_HANDLE)
187+
#define OPENSSL_USE_STD_INPUT_HANDLE
188+
#endif
189+
183190
#undef PROG
184191
#define PROG s_client_main
185192

@@ -1793,17 +1800,16 @@ int MAIN(int argc, char **argv)
17931800
tv.tv_usec = 0;
17941801
i = select(width, (void *)&readfds, (void *)&writefds,
17951802
NULL, &tv);
1796-
# if defined(OPENSSL_SYS_WINCE) || defined(OPENSSL_SYS_MSDOS)
1797-
if (!i && (!_kbhit() || !read_tty))
1798-
continue;
1799-
# else
1803+
#if defined(OPENSSL_USE_STD_INPUT_HANDLE)
18001804
if (!i && (!((_kbhit())
18011805
|| (WAIT_OBJECT_0 ==
18021806
WaitForSingleObject(GetStdHandle
18031807
(STD_INPUT_HANDLE),
18041808
0)))
18051809
|| !read_tty))
18061810
continue;
1811+
#else
1812+
if(!i && (!_kbhit() || !read_tty) ) continue;
18071813
# endif
18081814
} else
18091815
i = select(width, (void *)&readfds, (void *)&writefds,
@@ -2005,12 +2011,12 @@ int MAIN(int argc, char **argv)
20052011
}
20062012
}
20072013
#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS)
2008-
# if defined(OPENSSL_SYS_WINCE) || defined(OPENSSL_SYS_MSDOS)
2009-
else if (_kbhit())
2010-
# else
2014+
#if defined(OPENSSL_USE_STD_INPUT_HANDLE)
20112015
else if ((_kbhit())
20122016
|| (WAIT_OBJECT_0 ==
20132017
WaitForSingleObject(GetStdHandle(STD_INPUT_HANDLE), 0)))
2018+
#else
2019+
else if (_kbhit())
20142020
# endif
20152021
#elif defined (OPENSSL_SYS_NETWARE)
20162022
else if (_kbhit())

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.