Remove instances in libssl of the constant 28 (for size of IPv4 header + UDP)
authorMatt Caswell <matt@openssl.org>
Mon, 1 Dec 2014 23:58:05 +0000 (23:58 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 3 Dec 2014 09:35:23 +0000 (09:35 +0000)
commit4c21e004a3738b70c7d21d6e86ca68b21577d4d0
treef551a37e525d2ad59dde8f6789d983e0e748cab4
parent59ee70e386a7625018f29da56d889637022d4649
Remove instances in libssl of the constant 28 (for size of IPv4 header + UDP)
and instead use the value provided by the underlying BIO. Also provide some
new DTLS_CTRLs so that the library user can set the mtu without needing to
know this constant. These new DTLS_CTRLs provide the capability to set the
link level mtu to be used (i.e. including this IP/UDP overhead). The previous
DTLS_CTRLs required the library user to subtract this overhead first.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 59669b6abf620d1ed2ef4d1e2df25c998b89b64d)

Conflicts:
ssl/d1_both.c
ssl/ssl_lib.c
ssl/d1_both.c
ssl/d1_lib.c
ssl/dtls1.h
ssl/ssl.h
ssl/ssl_lib.c
ssl/ssl_locl.h