summaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_sock.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-03-17 12:53:11 -0400
committerRich Salz <rsalz@openssl.org>2016-03-17 17:06:57 -0400
commit1fbab1dc6fcb14f512a40c5755708a8bcbf84f40 (patch)
treea54f0b0b24b2a5af56e3f3e533e0a5c7063266bd /crypto/bio/b_sock.c
parent014267f68ce98cfe61df4574552043fbbd144a1f (diff)
Remove Netware and OS/2
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bio/b_sock.c')
-rw-r--r--crypto/bio/b_sock.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c
index 50bd27dabd..046de99190 100644
--- a/crypto/bio/b_sock.c
+++ b/crypto/bio/b_sock.c
@@ -72,7 +72,7 @@ NETDB_DEFINE_CONTEXT
# else
# define MAX_LISTEN 32
# endif
-# if defined(OPENSSL_SYS_WINDOWS) || (defined(OPENSSL_SYS_NETWARE) && !defined(NETWARE_BSDSOCK))
+# if defined(OPENSSL_SYS_WINDOWS)
static int wsa_init_done = 0;
# endif
@@ -202,23 +202,6 @@ int BIO_sock_init(void)
return (-1);
# endif
-# if defined(OPENSSL_SYS_NETWARE) && !defined(NETWARE_BSDSOCK)
- WORD wVerReq;
- WSADATA wsaData;
- int err;
-
- if (!wsa_init_done) {
- wsa_init_done = 1;
- wVerReq = MAKEWORD(2, 0);
- err = WSAStartup(wVerReq, &wsaData);
- if (err != 0) {
- SYSerr(SYS_F_WSASTARTUP, err);
- BIOerr(BIO_F_BIO_SOCK_INIT, BIO_R_WSASTARTUP);
- return (-1);
- }
- }
-# endif
-
return (1);
}
@@ -229,11 +212,6 @@ void BIO_sock_cleanup(void)
wsa_init_done = 0;
WSACleanup();
}
-# elif defined(OPENSSL_SYS_NETWARE) && !defined(NETWARE_BSDSOCK)
- if (wsa_init_done) {
- wsa_init_done = 0;
- WSACleanup();
- }
# endif
}