Matt Caswell 64f9f40696 Handle SSL_shutdown while in init more appropriately #2
Previous commit 7bb196a71 attempted to "fix" a problem with the way
SSL_shutdown() behaved whilst in mid-handshake. The original behaviour had
SSL_shutdown() return immediately having taken no action if called mid-
handshake with a return value of 1 (meaning everything was shutdown
successfully). In fact the shutdown has not been successful.

Commit 7bb196a71 changed that to send a close_notify anyway and then
return. This seems to be causing some problems for some applications so
perhaps a better (much simpler) approach is revert to the previous
behaviour (no attempt at a shutdown), but return -1 (meaning the shutdown
was not successful).

This also fixes a bug where SSL_shutdown always returns 0 when shutdown
*very* early in the handshake (i.e. we are still using SSLv23_method).

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2016-02-08 09:29:29 +00:00
..
2016-01-26 16:40:43 -05:00
2016-02-05 15:25:50 -05:00
2016-01-26 16:40:43 -05:00
2016-02-05 20:47:36 +00:00
2016-01-26 16:40:43 -05:00
2016-01-29 16:56:07 -05:00
2016-01-26 16:40:43 -05:00
2016-02-01 16:21:57 +01:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-02-01 16:21:57 +01:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2015-05-16 09:20:58 +01:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2016-02-01 16:21:57 +01:00
2016-02-01 16:21:57 +01:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00