diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-11-06 13:46:10 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-11-06 13:46:10 +0000 |
commit | c1b86de53cd1091d9e9e6f489f01d9c1d0eef190 (patch) | |
tree | 17abdd4cb42dfa4772fff8af49b7dae24a683e87 | |
parent | d681047c4436db8603c911ef556a7962e8b61198 (diff) |
ssl_sock_init() does nothing, so remove it...
-rw-r--r-- | usr.bin/openssl/s_socket.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.bin/openssl/s_socket.c b/usr.bin/openssl/s_socket.c index 48af178a231..2ce31eb5ef2 100644 --- a/usr.bin/openssl/s_socket.c +++ b/usr.bin/openssl/s_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_socket.c,v 1.1 2014/08/26 17:47:25 jsing Exp $ */ +/* $OpenBSD: s_socket.c,v 1.2 2014/11/06 13:46:09 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -73,28 +73,18 @@ #include "s_apps.h" -static int ssl_sock_init(void); static int init_server(int *sock, int port, int type); static int init_server_long(int *sock, int port, char *ip, int type); static int do_accept(int acc_sock, int *sock, char **host); #define SOCKET_PROTOCOL IPPROTO_TCP -static int -ssl_sock_init(void) -{ - return (1); -} - int init_client(int *sock, char *host, char *port, int type, int af) { struct addrinfo hints, *ai_top, *ai; int i, s; - if (!ssl_sock_init()) - return (0); - memset(&hints, '\0', sizeof(hints)); hints.ai_family = af; hints.ai_socktype = type; @@ -186,9 +176,6 @@ init_server_long(int *sock, int port, char *ip, int type) struct sockaddr_in server; int s = -1; - if (!ssl_sock_init()) - return (0); - memset((char *) &server, 0, sizeof(server)); server.sin_family = AF_INET; server.sin_port = htons((unsigned short) port); @@ -243,9 +230,6 @@ do_accept(int acc_sock, int *sock, char **host) socklen_t len; /* struct linger ling; */ - if (!ssl_sock_init()) - return (0); - redoit: memset((char *) &from, 0, sizeof(from)); |