summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/s_server.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/src/apps/s_server.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c
index 4ad535b9ee..8d7568085a 100644
--- a/src/lib/libssl/src/apps/s_server.c
+++ b/src/lib/libssl/src/apps/s_server.c
@@ -157,9 +157,7 @@
157#define APPS_WIN16 157#define APPS_WIN16
158#endif 158#endif
159 159
160#if !defined(OPENSSL_SYS_NETWARE) /* conflicts with winsock2 stuff on netware */
161#include <sys/types.h> 160#include <sys/types.h>
162#endif
163 161
164#include <openssl/lhash.h> 162#include <openssl/lhash.h>
165#include <openssl/bn.h> 163#include <openssl/bn.h>
@@ -183,9 +181,6 @@
183#include "s_apps.h" 181#include "s_apps.h"
184#include "timeouts.h" 182#include "timeouts.h"
185 183
186#if defined(OPENSSL_SYS_BEOS_R5)
187#include <fcntl.h>
188#endif
189 184
190#ifndef OPENSSL_NO_RSA 185#ifndef OPENSSL_NO_RSA
191static RSA *tmp_rsa_cb(SSL *s, int is_export, int keylength); 186static RSA *tmp_rsa_cb(SSL *s, int is_export, int keylength);
@@ -1947,17 +1942,6 @@ static int sv_body(char *hostname, int s, unsigned char *context)
1947 if((i < 0) || (!i && !_kbhit() ) )continue; 1942 if((i < 0) || (!i && !_kbhit() ) )continue;
1948 if(_kbhit()) 1943 if(_kbhit())
1949 read_from_terminal = 1; 1944 read_from_terminal = 1;
1950#elif defined(OPENSSL_SYS_BEOS_R5)
1951 /* Under BeOS-R5 the situation is similar to DOS */
1952 tv.tv_sec = 1;
1953 tv.tv_usec = 0;
1954 (void)fcntl(fileno(stdin), F_SETFL, O_NONBLOCK);
1955 i=select(width,(void *)&readfds,NULL,NULL,&tv);
1956 if ((i < 0) || (!i && read(fileno(stdin), buf, 0) < 0))
1957 continue;
1958 if (read(fileno(stdin), buf, 0) >= 0)
1959 read_from_terminal = 1;
1960 (void)fcntl(fileno(stdin), F_SETFL, 0);
1961#else 1945#else
1962 if ((SSL_version(con) == DTLS1_VERSION) && 1946 if ((SSL_version(con) == DTLS1_VERSION) &&
1963 DTLSv1_get_timeout(con, &timeout)) 1947 DTLSv1_get_timeout(con, &timeout))
@@ -2496,9 +2480,7 @@ static int www_body(char *hostname, int s, unsigned char *context)
2496 else 2480 else
2497 { 2481 {
2498 BIO_printf(bio_s_out,"read R BLOCK\n"); 2482 BIO_printf(bio_s_out,"read R BLOCK\n");
2499#if defined(OPENSSL_SYS_NETWARE) 2483#if !defined(OPENSSL_SYS_MSDOS) && !defined(__DJGPP__)
2500 delay(1000);
2501#elif !defined(OPENSSL_SYS_MSDOS) && !defined(__DJGPP__)
2502 sleep(1); 2484 sleep(1);
2503#endif 2485#endif
2504 continue; 2486 continue;