Provide record layer overhead for DTLS.
authorjsing <jsing@openbsd.org>
Tue, 19 Jan 2021 18:51:08 +0000 (18:51 +0000)
committerjsing <jsing@openbsd.org>
Tue, 19 Jan 2021 18:51:08 +0000 (18:51 +0000)
commit9123ae000a0930a3157c2f71f650b5827b9148c6
treef70ececc928b0f3f71f5cd2be63c42a43e9fdc4c
parent1c1840fbfd773bb2c96289691280aa64fec20908
Provide record layer overhead for DTLS.

Rather than manually calculating the maximum record layer overhead in the
DTLS code, have the record layer provide this information. This also makes
it work correctly with AEAD ciphersuites.

ok inoguchi@ tb@
lib/libssl/d1_both.c
lib/libssl/ssl_locl.h
lib/libssl/tls12_record_layer.c