Add DTLS_get_data_mtu() function
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 5 Oct 2016 23:44:59 +0000 (00:44 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 2 Nov 2016 14:00:10 +0000 (14:00 +0000)
commit045bd04706d2a798d5fb4b3ccf7fd56e6e09b082
treef9ada1f08e5d69c3d760f96d945dcddc1ca28b6a
parentca0b75ade0e89d1d3782ed6b1a4ae0fab72251ec
Add DTLS_get_data_mtu() function

We add ssl_cipher_get_overhead() as an internal function, to avoid
having too much ciphersuite-specific knowledge in DTLS_get_data_mtu()
itself. It's going to need adjustment for TLSv1.3... but then again, so
is fairly much *all* of the SSL_CIPHER handling. This bit is in the noise.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
include/openssl/ssl.h
ssl/d1_lib.c
ssl/ssl_ciph.c
ssl/ssl_locl.h
util/libssl.num