Commit e0144926 authored by Bodo Möller's avatar Bodo Möller
Browse files

don't prematurely shut down socket -- use SSL_shutdown

parent 4c22909e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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';