diff options
-rw-r--r-- | demos/ssl/cli.cpp | 2 |
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'; |