SSL_shutdown was done too early.

This commit is contained in:
Bodo Möller 1999-08-01 11:19:59 +00:00
parent e014492646
commit f3db3d172f

View File

@ -97,11 +97,10 @@ void main ()
err = SSL_write (ssl, "Hello World!", strlen("Hello World!")); CHK_SSL(err);
SSL_shutdown (ssl); /* send SSL/TLS close_notify */
err = SSL_read (ssl, buf, sizeof(buf) - 1); CHK_SSL(err);
buf[err] = '\0';
printf ("Got %d chars:'%s'\n", err, buf);
SSL_shutdown (ssl); /* send SSL/TLS close_notify */
/* Clean up. */