diff options
author | Rich Salz <rsalz@akamai.com> | 2016-03-02 16:12:46 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-07 14:47:54 -0500 |
commit | 8731a4fcd267d56cab2ad6d7cfac2c846c413a5d (patch) | |
tree | b910ec1848c7ab94b633264a3c076c89007ead4e /apps/s_client.c | |
parent | 2b2b96847d7f22b24109a53a57c6d4d371209de3 (diff) |
ISSUE 43: Add BIO_sock_shutdown
This replaces SHUTDOWN/SHUTDOWN2 with BIO_closesocket.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index cce8e244b5..247bdbf8c1 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1735,7 +1735,7 @@ int s_client_main(int argc, char **argv) if (init_client(&s, host, port, socket_family, socket_type) == 0) { BIO_printf(bio_err, "connect:errno=%d\n", get_last_socket_error()); - SHUTDOWN(s); + BIO_closesocket(s); goto end; } BIO_printf(bio_c_out, "CONNECTED(%08X)\n", s); @@ -1753,7 +1753,7 @@ int s_client_main(int argc, char **argv) if (getsockname(s, &peer, (void *)&peerlen) < 0) { BIO_printf(bio_err, "getsockname:errno=%d\n", get_last_socket_error()); - SHUTDOWN(s); + BIO_closesocket(s); goto end; } @@ -2135,7 +2135,7 @@ int s_client_main(int argc, char **argv) "drop connection and then reconnect\n"); do_ssl_shutdown(con); SSL_set_connect_state(con); - SHUTDOWN(SSL_get_fd(con)); + BIO_closesocket(SSL_get_fd(con)); goto re_start; } } @@ -2452,7 +2452,7 @@ int s_client_main(int argc, char **argv) if (in_init) print_stuff(bio_c_out, con, full_log); do_ssl_shutdown(con); - SHUTDOWN(SSL_get_fd(con)); + BIO_closesocket(SSL_get_fd(con)); end: if (con != NULL) { if (prexit != 0) |