From e01449264664b54194ea326e8290cf3d3843c690 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Sun, 1 Aug 1999 10:04:37 +0000 Subject: [PATCH] don't prematurely shut down socket -- use SSL_shutdown --- demos/ssl/cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.25.1