Dedup DTLS header writing code and convert to CBB.
authorjsing <jsing@openbsd.org>
Mon, 27 Aug 2018 16:56:46 +0000 (16:56 +0000)
committerjsing <jsing@openbsd.org>
Mon, 27 Aug 2018 16:56:46 +0000 (16:56 +0000)
commit33b95d8b2c1cf987bb9a258528e8a1f69ae58210
treec1632bfadc3a2f75625b70f24229ed9797f8c9d0
parent2ddd511d3d48106e32384b1be7cc7e1fca3fa4b4
Dedup DTLS header writing code and convert to CBB.

There are three versions of the DTLS header writing code, which primarily
differ by the fragment offset and fragment length values that differ.
Rework dtls1_write_message_header() such that it can be used in all three
cases and convert it to CBB in the process.

ok inoguchi@ tb@
lib/libssl/d1_both.c