summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/b_sock.c
diff options
context:
space:
mode:
authortedu <>2014-04-17 22:19:56 +0000
committertedu <>2014-04-17 22:19:56 +0000
commit94d35b5b00cda89723429cae9d9158a8d9df2432 (patch)
tree5012a7047e7828c1d39e8bf93d06e92bf88869b1 /src/lib/libcrypto/bio/b_sock.c
parentd4cf34459108466cebdc5ac219fa08ae98fe45ec (diff)
downloadopenbsd-94d35b5b00cda89723429cae9d9158a8d9df2432.tar.gz
openbsd-94d35b5b00cda89723429cae9d9158a8d9df2432.tar.bz2
openbsd-94d35b5b00cda89723429cae9d9158a8d9df2432.zip
delete if 0 code
Diffstat (limited to 'src/lib/libcrypto/bio/b_sock.c')
-rw-r--r--src/lib/libcrypto/bio/b_sock.c28
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
100static unsigned long BIO_ghbn_hits = 0L;
101static unsigned long BIO_ghbn_miss = 0L;
102
103#define GHBN_NUM 4
104static struct ghbn_cache_st {
105 char name[129];
106 struct hostent *ent;
107 unsigned long order;
108} ghbn_cache[GHBN_NUM];
109#endif
110
111static int get_ip(const char *str, unsigned char *ip); 99static int get_ip(const char *str, unsigned char *ip);
112#if 0
113static void ghbn_free(struct hostent *a);
114static struct hostent *ghbn_dup(struct hostent *a);
115#endif
116 100
117int 101int
118BIO_get_host_ip(const char *str, unsigned char *ip) 102BIO_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);