Create a TLS record
the output record is placed here
is the type of the message (handshake, alert, ...)
is the plaintext message
is the length of msg
is the protocol version
is the sequence number
is a random number generator
number of bytes written to write_buffer
See Implementation
Create a TLS record