Add a test for BIO_read() returning 0 in SSL_read() (and also for write)
authorMatt Caswell <matt@openssl.org>
Thu, 27 Oct 2016 12:46:57 +0000 (13:46 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 08:13:49 +0000 (09:13 +0100)
commita34ac5b8b9c1a3281b4ee545c46177f485fb4949
tree90b6f05b16714ebe22c550fea245ba6d2fb495c9
parent4880672a9b41a09a0984b55e219f02a2de7ab75e
Add a test for BIO_read() returning 0 in SSL_read() (and also for write)

A BIO_read() 0 return indicates that a failure occurred that may be
retryable. An SSL_read() 0 return indicates a non-retryable failure. Check
that if BIO_read() returns 0, SSL_read() returns <0. Same for SSL_write().

The asyncio test filter BIO already returns 0 on a retryable failure so we
build on that.

Reviewed-by: Richard Levitte <levitte@openssl.org>
test/asynciotest.c