writeRecord

Create a TLS record

package
static if(BOTAN_HAS_TLS)
void
writeRecord

Parameters

output SecureVector!ubyte

the output record is placed here

msg_type ubyte

is the type of the message (handshake, alert, ...)

msg const(ubyte)*

is the plaintext message

msg_length size_t

is the length of msg

_version TLSProtocolVersion

is the protocol version

seq ulong

is the sequence number

rng RandomNumberGenerator

is a random number generator

Return Value

Type: void

number of bytes written to write_buffer

Meta