From: Bodo Möller Date: Sun, 1 Aug 1999 10:04:37 +0000 (+0000) Subject: don't prematurely shut down socket -- use SSL_shutdown X-Git-Tag: OpenSSL_0_9_4~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e01449264664b54194ea326e8290cf3d3843c690;p=oweals%2Fopenssl.git don't prematurely shut down socket -- use SSL_shutdown --- diff --git a/demos/ssl/cli.cpp b/demos/ssl/cli.cpp index 2efe161d43..bab4e47d67 100644 --- a/demos/ssl/cli.cpp +++ b/demos/ssl/cli.cpp @@ -97,7 +97,7 @@ void main () err = SSL_write (ssl, "Hello World!", strlen("Hello World!")); CHK_SSL(err); - shutdown (sd, 1); /* Half close, send EOF to server. */ + SSL_shutdown (ssl); /* send SSL/TLS close_notify */ err = SSL_read (ssl, buf, sizeof(buf) - 1); CHK_SSL(err); buf[err] = '\0';