Implement length checks as a macro
authorMatt Caswell <matt@openssl.org>
Tue, 25 Oct 2016 10:10:56 +0000 (11:10 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 08:40:55 +0000 (09:40 +0100)
commit5af2ad682e809c04bdc79357ac8cb6571139e098
tree5d07627ca0a7a8e24d432f7949309b93d30f7ce9
parent3ab5f981ed17adf0b804909d9aeac7419a432f01
Implement length checks as a macro

Replace the various length checks in the extension code with a macro to
simplify the logic.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/t1_lib.c