Commit 2f0c9d5c authored by Andy Polyakov's avatar Andy Polyakov
Browse files

bio/b_sock.c: cleanup obsolete stuff.



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 6bc1dfd6
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@
NETDB_DEFINE_CONTEXT
#endif
#ifndef OPENSSL_NO_SOCK
# include <openssl/dso.h>
# define SOCKET_PROTOCOL IPPROTO_TCP
# ifdef SO_MAXCONN
#  define MAX_LISTEN  SO_MAXCONN
@@ -77,17 +76,6 @@ NETDB_DEFINE_CONTEXT
static int wsa_init_done = 0;
# endif

/*
 * WSAAPI specifier is required to make indirect calls to run-time
 * linked WinSock 2 functions used in this module, to be specific
 * [get|free]addrinfo and getnameinfo. This is because WinSock uses
 * uses non-C calling convention, __stdcall vs. __cdecl, on x86
 * Windows. On non-WinSock platforms WSAAPI needs to be void.
 */
# ifndef WSAAPI
#  define WSAAPI
# endif

# if OPENSSL_API_COMPAT < 0x10100000L
int BIO_get_host_ip(const char *str, unsigned char *ip)
{