std.crypto.tls: add API for sending close_notify

This commit adds `writeEnd` and `writeAllEnd` in order to send data and
also notify the server that there will be no more data written.

Unfortunately, it seems most TLS implementations in the wild get this
wrong and immediately close the socket when they see a close_notify,
rather than only ending the data stream on the application layer.
611a1fdd6dAndrew Kelley committed on 1/2/2023, 11:57:16 PMparentb3c8c38
3 files changedLine totals unavailable