Add empty record tests
authorMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 16:44:19 +0000 (17:44 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 7 Jun 2016 21:07:36 +0000 (22:07 +0100)
commit4f0c475719defd7c051964ef9964cc6e5b3a63bf
tree63854c3ec66a86dcdecb07fd0fb5d726f064c26d
parent255cfeacd88bcba13688da17fab72b344a78d24f
Add empty record tests

The previous commit changed how we handle out-of-context empty records.
This commit adds some tests for the various scenarios. There are three
tests:
1: Check that if we inject an out-of-context empty record then we fail
2: Check that if we inject an in-context empty record then we succeed
3: Check that if we inject too many in-context empty records then we fail.

Reviewed-by: Andy Polyakov <appro@openssl.org>
test/recipes/70-test_sslrecords.t [new file with mode: 0644]