Reject out of context empty records
authorMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 15:31:11 +0000 (16:31 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 7 Jun 2016 21:07:36 +0000 (22:07 +0100)
commit255cfeacd88bcba13688da17fab72b344a78d24f
tree0b525bb5afce4e734d8bc97c9041216d41954352
parent0aac3a6b1979dbebd5325bb48c01f584bf35017e
Reject out of context empty records

Previously if we received an empty record we just threw it away and
ignored it. Really though if we get an empty record of a different content
type to what we are expecting then that should be an error, i.e. we should
reject out of context empty records. This commit makes the necessary changes
to achieve that.

RT#4395

Reviewed-by: Andy Polyakov <appro@openssl.org>
ssl/record/rec_layer_s3.c
ssl/record/record.h
ssl/record/record_locl.h
ssl/record/ssl3_record.c