diff options
Diffstat (limited to 'src/lib/libcrypto/bio/b_sock.c')
-rw-r--r-- | src/lib/libcrypto/bio/b_sock.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c index 0972feeb58..43b27e0406 100644 --- a/src/lib/libcrypto/bio/b_sock.c +++ b/src/lib/libcrypto/bio/b_sock.c | |||
@@ -96,23 +96,7 @@ static int wsa_init_done = 0; | |||
96 | #define WSAAPI | 96 | #define WSAAPI |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | #if 0 | ||
100 | static unsigned long BIO_ghbn_hits = 0L; | ||
101 | static unsigned long BIO_ghbn_miss = 0L; | ||
102 | |||
103 | #define GHBN_NUM 4 | ||
104 | static struct ghbn_cache_st { | ||
105 | char name[129]; | ||
106 | struct hostent *ent; | ||
107 | unsigned long order; | ||
108 | } ghbn_cache[GHBN_NUM]; | ||
109 | #endif | ||
110 | |||
111 | static int get_ip(const char *str, unsigned char *ip); | 99 | static int get_ip(const char *str, unsigned char *ip); |
112 | #if 0 | ||
113 | static void ghbn_free(struct hostent *a); | ||
114 | static struct hostent *ghbn_dup(struct hostent *a); | ||
115 | #endif | ||
116 | 100 | ||
117 | int | 101 | int |
118 | BIO_get_host_ip(const char *str, unsigned char *ip) | 102 | BIO_get_host_ip(const char *str, unsigned char *ip) |
@@ -200,10 +184,6 @@ BIO_get_port(const char *str, unsigned short *port_ptr) | |||
200 | *port_ptr = 21; | 184 | *port_ptr = 21; |
201 | else if (strcmp(str, "gopher") == 0) | 185 | else if (strcmp(str, "gopher") == 0) |
202 | *port_ptr = 70; | 186 | *port_ptr = 70; |
203 | #if 0 | ||
204 | else if (strcmp(str, "wais") == 0) | ||
205 | *port_ptr = 21; | ||
206 | #endif | ||
207 | else { | 187 | else { |
208 | SYSerr(SYS_F_GETSERVBYNAME, errno); | 188 | SYSerr(SYS_F_GETSERVBYNAME, errno); |
209 | ERR_add_error_data(3, "service='", str, "'"); | 189 | ERR_add_error_data(3, "service='", str, "'"); |
@@ -220,10 +200,6 @@ BIO_sock_error(int sock) | |||
220 | int j, i; | 200 | int j, i; |
221 | int size; | 201 | int size; |
222 | 202 | ||
223 | #if defined(OPENSSL_SYS_BEOS_R5) | ||
224 | return 0; | ||
225 | #endif | ||
226 | |||
227 | size = sizeof(int); | 203 | size = sizeof(int); |
228 | /* Note: under Windows the third parameter is of type (char *) | 204 | /* Note: under Windows the third parameter is of type (char *) |
229 | * whereas under other systems it is (void *) if you don't have | 205 | * whereas under other systems it is (void *) if you don't have |
@@ -260,13 +236,9 @@ BIO_socket_ioctl(int fd, long type, void *arg) | |||
260 | { | 236 | { |
261 | int i; | 237 | int i; |
262 | 238 | ||
263 | #ifdef __DJGPP__ | ||
264 | i = ioctl(fd, type, (char *)arg); | ||
265 | #else | ||
266 | # define ARG arg | 239 | # define ARG arg |
267 | 240 | ||
268 | i = ioctl(fd, type, ARG); | 241 | i = ioctl(fd, type, ARG); |
269 | #endif /* __DJGPP__ */ | ||
270 | if (i < 0) | 242 | if (i < 0) |
271 | SYSerr(SYS_F_IOCTLSOCKET, errno); | 243 | SYSerr(SYS_F_IOCTLSOCKET, errno); |
272 | return (i); | 244 | return (i); |