summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Orton <joe@manyfish.uk>2020-06-18 22:27:47 +0100
committerJoe Orton <joe@manyfish.uk>2020-06-18 22:27:47 +0100
commitcefffa9de4255a00b6642d346207738bfad3c222 (patch)
treeb61661164636378d756b025526d6cea7ed85beab
parent58c665fb80ea2e414403aadb188dd2eccf09fb00 (diff)
downloadneon-git-cefffa9de4255a00b6642d346207738bfad3c222.tar.gz
Revert "* src/ne_socket.c (ne_sock_close): Complete a bidirectional shutdown"
This reverts commit b19bb812412a7a661f186abfeca3264b218a5b12. Closes #11
-rw-r--r--src/ne_socket.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ne_socket.c b/src/ne_socket.c
index bf8e292..52a0701 100644
--- a/src/ne_socket.c
+++ b/src/ne_socket.c
@@ -1975,13 +1975,12 @@ int ne_sock_close(ne_socket *sock)
{
int ret;
- /* Complete a bidirectional shutdown for SSL/TLS. */
+ /* Per API description - for an SSL connection, simply send the
+ * close_notify but do not wait for the peer's response. */
#if defined(HAVE_OPENSSL)
if (sock->ssl) {
- if (SSL_shutdown(sock->ssl) == 0) {
- SSL_shutdown(sock->ssl);
- }
- SSL_free(sock->ssl);
+ SSL_shutdown(sock->ssl);
+ SSL_free(sock->ssl);
}
#elif defined(HAVE_GNUTLS)
if (sock->ssl) {