summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-08-01 12:04:37 +0200
committerBodo Möller <bodo@openssl.org>1999-08-01 12:04:37 +0200
commite01449264664b54194ea326e8290cf3d3843c690 (patch)
treed3d92e2d6ced58994dacc48423109df876681c91 /demos
parentExtra i386+gcc bn_div.c tune-up featuring inline division and saving (diff)
downloadopenssl-e01449264664b54194ea326e8290cf3d3843c690.tar.xz
openssl-e01449264664b54194ea326e8290cf3d3843c690.zip
don't prematurely shut down socket -- use SSL_shutdown
Diffstat (limited to 'demos')
-rw-r--r--demos/ssl/cli.cpp2
1 files changed, 1 insertions, 1 deletions
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';