summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/s_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/apps/s_server.c')
-rw-r--r--src/lib/libssl/src/apps/s_server.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c
index 7fafe56359..7309f740e4 100644
--- a/src/lib/libssl/src/apps/s_server.c
+++ b/src/lib/libssl/src/apps/s_server.c
@@ -1780,11 +1780,7 @@ static int sv_body(char *hostname, int s, unsigned char *context)
1780 KSSL_CTX *kctx; 1780 KSSL_CTX *kctx;
1781#endif 1781#endif
1782 struct timeval timeout; 1782 struct timeval timeout;
1783#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_BEOS_R5)
1784 struct timeval tv;
1785#else
1786 struct timeval *timeoutp; 1783 struct timeval *timeoutp;
1787#endif
1788 1784
1789 if ((buf=malloc(bufsize)) == NULL) 1785 if ((buf=malloc(bufsize)) == NULL)
1790 { 1786 {
@@ -1915,9 +1911,7 @@ static int sv_body(char *hostname, int s, unsigned char *context)
1915 if (!read_from_sslcon) 1911 if (!read_from_sslcon)
1916 { 1912 {
1917 FD_ZERO(&readfds); 1913 FD_ZERO(&readfds);
1918#if !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_NETWARE) && !defined(OPENSSL_SYS_BEOS_R5)
1919 openssl_fdset(fileno(stdin),&readfds); 1914 openssl_fdset(fileno(stdin),&readfds);
1920#endif
1921 openssl_fdset(s,&readfds); 1915 openssl_fdset(s,&readfds);
1922 /* Note: under VMS with SOCKETSHR the second parameter is 1916 /* Note: under VMS with SOCKETSHR the second parameter is
1923 * currently of type (int *) whereas under other systems 1917 * currently of type (int *) whereas under other systems
@@ -1925,19 +1919,6 @@ static int sv_body(char *hostname, int s, unsigned char *context)
1925 * the compiler: if you do have a cast then you can either 1919 * the compiler: if you do have a cast then you can either
1926 * go for (int *) or (void *). 1920 * go for (int *) or (void *).
1927 */ 1921 */
1928#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_NETWARE)
1929 /* Under DOS (non-djgpp) and Windows we can't select on stdin: only
1930 * on sockets. As a workaround we timeout the select every
1931 * second and check for any keypress. In a proper Windows
1932 * application we wouldn't do this because it is inefficient.
1933 */
1934 tv.tv_sec = 1;
1935 tv.tv_usec = 0;
1936 i=select(width,(void *)&readfds,NULL,NULL,&tv);
1937 if((i < 0) || (!i && !_kbhit() ) )continue;
1938 if(_kbhit())
1939 read_from_terminal = 1;
1940#else
1941 if ((SSL_version(con) == DTLS1_VERSION) && 1922 if ((SSL_version(con) == DTLS1_VERSION) &&
1942 DTLSv1_get_timeout(con, &timeout)) 1923 DTLSv1_get_timeout(con, &timeout))
1943 timeoutp = &timeout; 1924 timeoutp = &timeout;
@@ -1954,7 +1935,6 @@ static int sv_body(char *hostname, int s, unsigned char *context)
1954 if (i <= 0) continue; 1935 if (i <= 0) continue;
1955 if (FD_ISSET(fileno(stdin),&readfds)) 1936 if (FD_ISSET(fileno(stdin),&readfds))
1956 read_from_terminal = 1; 1937 read_from_terminal = 1;
1957#endif
1958 if (FD_ISSET(s,&readfds)) 1938 if (FD_ISSET(s,&readfds))
1959 read_from_sslcon = 1; 1939 read_from_sslcon = 1;
1960 } 1940 }
@@ -2475,9 +2455,7 @@ static int www_body(char *hostname, int s, unsigned char *context)
2475 else 2455 else
2476 { 2456 {
2477 BIO_printf(bio_s_out,"read R BLOCK\n"); 2457 BIO_printf(bio_s_out,"read R BLOCK\n");
2478#if !defined(OPENSSL_SYS_MSDOS) && !defined(__DJGPP__)
2479 sleep(1); 2458 sleep(1);
2480#endif
2481 continue; 2459 continue;
2482 } 2460 }
2483 } 2461 }