commit | a34ac5b8b9c1a3281b4ee545c46177f485fb4949 | [log] [tgz] |
---|---|---|
author | Matt Caswell <matt@openssl.org> | Thu Oct 27 13:46:57 2016 +0100 |
committer | Matt Caswell <matt@openssl.org> | Fri Oct 28 09:13:49 2016 +0100 |
tree | 90b6f05b16714ebe22c550fea245ba6d2fb495c9 | |
parent | 4880672a9b41a09a0984b55e219f02a2de7ab75e [diff] |
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>