/* In "no encryption" mode, encryption is trivial (a no-operation) so we just have to encode the header.  */
static unsigned char* clear_encrypt(br_sslrec_out_clear_context *cc, int record_type, unsigned version, void *data, size_t *data_len)
/* In "no encryption" mode, encryption is trivial (a no-operation) so we just have to encode the header.  */
static unsigned char* clear_encrypt(br_sslrec_out_clear_context *cc, int record_type, unsigned version, void *data, size_t *data_len)
{
	unsigned char *buf;
	(void)cc;
	buf = (unsigned char *)data - 5;
	buf[0] = record_type;
	br_enc16be(buf + 1, version);
	br_enc16be(buf + 3, *data_len);
	*data_len += 5;
	return buf;
}