Address feedback on SSLv2 ClientHello processing
authorMatt Caswell <matt@openssl.org>
Mon, 1 Aug 2016 16:15:13 +0000 (17:15 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 15 Aug 2016 22:14:30 +0000 (23:14 +0100)
commit44efb88a21d464dba3ac5084c8d4553d696fab33
tree35bda8b646b39ccc7d1916a5ee7c66777afba44b
parentc35d339d98f969aa88b75124389ba86344eb7e2a
Address feedback on SSLv2 ClientHello processing

Feedback on the previous SSLv2 ClientHello processing fix was that it
breaks layering by reading init_num in the record layer. It also does not
detect if there was a previous non-fatal warning.

This is an alternative approach that directly tracks in the record layer
whether this is the first record.

GitHub Issue #1298

Reviewed-by: Tim Hudson <tjh@openssl.org>
ssl/record/rec_layer_s3.c
ssl/record/record.h
ssl/record/record_locl.h
ssl/record/ssl3_record.c