Add a test for the bug fixed in the previous commit
authorMatt Caswell <matt@openssl.org>
Wed, 29 Mar 2017 16:02:25 +0000 (17:02 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 30 Mar 2017 08:13:13 +0000 (09:13 +0100)
commit3cb47b4ec1514248996ca037a5e7890ea7fdc855
treefd4e2cbb56851ef5f4a27543732331f193c2f071
parent39ef78210c7110600e083e7aec8fe7cda076522b
Add a test for the bug fixed in the previous commit

We want to make sure that if we if are using SSL_MODE_AUTO_RETRY then
if SSL_read_early_data() hits EndOfEarlyData then it doesn't auto retry
and end up with normal data. The same issue could occur with read_ahead
which is what we use in this test.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3077)
test/sslapitest.c