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:31:35 +0000 (09:31 +0000)
commit05e769f269f28b649d8300a1fc3aaef19901a173
tree51fdb00407a0d4655e6622f8b46a9cc1470980d1
parentccecdb130c593335a9f53d5914542a98e440421d
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/d1_both.c
ssl/d1_lib.c
ssl/dtls1.h
ssl/ssl.h
ssl/ssl_lib.c
ssl/ssl_locl.h