Repository navigation
Fix ssl3_do_write() to correctly handle retries (3.1/3.0) - #21435
mattcaswell wants to merge 2 commits into
Conversation
Test various scenarios for a write retry occuring during a handshake.
A BIO is documented to return -1 on write retry - but sometimes they return 0. ssl3_do_write() was incorrectly handling a 0 response. Fixes openssl#21422
|
|
|
Ping for second review |
Can we do anything with this behavior? It looks quite counter intuitive... |
Well not really. This is mostly about third party BIOs. You could call it a bug in those BIOs because it doesn't match the documentation - but in reality I think this behaviour has worked for a long time. If there are any of our own BIOs that do the wrong thing then we could fix those, but I haven't checked. |
|
24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually. |
|
Merged to both 3.x branches. |
Test various scenarios for a write retry occuring during a handshake. Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from #21435) (cherry picked from commit d6179e6)
A BIO is documented to return -1 on write retry - but sometimes they return 0. ssl3_do_write() was incorrectly handling a 0 response. Fixes #21422 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from #21435) (cherry picked from commit 034ea1d)
Test various scenarios for a write retry occuring during a handshake. Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from #21435)
A BIO is documented to return -1 on write retry - but sometimes they return 0. ssl3_do_write() was incorrectly handling a 0 response. Fixes #21422 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from #21435)
Test various scenarios for a write retry occuring during a handshake. Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit d6179e6)
A BIO is documented to return -1 on write retry - but sometimes they return 0. ssl3_do_write() was incorrectly handling a 0 response. Fixes openssl#21422 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit 034ea1d)
Test various scenarios for a write retry occuring during a handshake. Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit d6179e6)
A BIO is documented to return -1 on write retry - but sometimes they return 0. ssl3_do_write() was incorrectly handling a 0 response. Fixes openssl#21422 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit 034ea1d)
Test various scenarios for a write retry occuring during a handshake. Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit d6179e6)
A BIO is documented to return -1 on write retry - but sometimes they return 0. ssl3_do_write() was incorrectly handling a 0 response. Fixes openssl#21422 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit 034ea1d)
Test various scenarios for a write retry occuring during a handshake. Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit d6179e6)
A BIO is documented to return -1 on write retry - but sometimes they return 0. ssl3_do_write() was incorrectly handling a 0 response. Fixes openssl#21422 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit 034ea1d)
Test various scenarios for a write retry occuring during a handshake. Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit d6179e6)
A BIO is documented to return -1 on write retry - but sometimes they return 0. ssl3_do_write() was incorrectly handling a 0 response. Fixes openssl#21422 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#21435) (cherry picked from commit 034ea1d)
Include 2 commits: 1. Add a test for a retry during the handshake 2. Fix ssl3_do_write() to correctly handle retries (Merged from openssl/openssl#21435)
A BIO is documented to return -1 on write retry - but sometimes they return
0. ssl3_do_write() was incorrectly handling a 0 response.
Fixes #21422
This is a backport of #21434 for the 3.1/3.0 branches.