handshake
ssl3_handshake_msg_start(SSL *s, CBB *handshake, CBB *body, uint8_t msg_type)
if (!CBB_init(handshake, SSL3_RT_MAX_PLAIN_LENGTH))
if (!CBB_add_u8(handshake, msg_type))
if (!CBB_add_space(handshake, &data, DTLS1_HM_HEADER_LENGTH -
if (!CBB_add_u24_length_prefixed(handshake, body))
ssl3_handshake_msg_finish(SSL *s, CBB *handshake)
if (!CBB_finish(handshake, &data, &outlen))
int ssl3_handshake_msg_start(SSL *s, CBB *handshake, CBB *body,
int ssl3_handshake_msg_finish(SSL *s, CBB *handshake);
if (!handshake(client_ssl, server_ssl, test->description))
if (!handshake(client_ssl, server_ssl, test->description))