Improve DTLS record header parsing.
authorjsing <jsing@openbsd.org>
Sat, 4 Sep 2021 14:15:52 +0000 (14:15 +0000)
committerjsing <jsing@openbsd.org>
Sat, 4 Sep 2021 14:15:52 +0000 (14:15 +0000)
commit7b597b5fe8cc0cd2d96106c2977bc78b01209c2e
treeb16eca4704fc438364d2c1c34d308c79a5c97a8d
parent7db692201a1faa324a5d82f6c26bef47c585fddd
Improve DTLS record header parsing.

Rather than pulling out the epoch and then six bytes of sequence number,
pull out SSL3_SEQUENCE_SIZE for the sequence number, then pull the epoch
off the start of the sequence number.

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