提交 e0144926 编写于 作者: B Bodo Möller

don't prematurely shut down socket -- use SSL_shutdown

上级 4c22909e
......@@ -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';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册