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:43:41 +0000 (09:43 +0100)
commit0b9c5da0fd9c53a9a6193f9d48da86c83a4935d6
treea5e3c72de04f9f1ac82e8efe56abc7e674c0aaf7
parenta520723f29aac6598ff0d69e34f5e9b88213e511
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