Fix several bounds checks in ssl_add_clienthello_tlsext() and
authormiod <miod@openbsd.org>
Mon, 19 May 2014 20:09:15 +0000 (20:09 +0000)
committermiod <miod@openbsd.org>
Mon, 19 May 2014 20:09:15 +0000 (20:09 +0000)
commit4e47639e4919dab2aea075fc976f61eb76427993
treef30200f4f916560b1bd0b0c3fcb441139be58ffa
parente8edab7c5a53f91ccef9c0f418f0b0dc29da7852
Fix several bounds checks in ssl_add_clienthello_tlsext() and
ssl_add_serverhello_tlsext(), and convert all of them to the same idiom, for
easier review.

Math is hard, let's go webshopping.

Help and ok guenther@
lib/libssl/src/ssl/t1_lib.c
lib/libssl/t1_lib.c