Matt Caswell 64193c8218 Handle SSL_shutdown while in init more appropriately #2
Previous commit f73c737c7 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 f73c737c7 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:30:57 +00:00
..
2015-09-20 14:21:18 +01:00
2015-08-28 11:59:23 -04:00
2015-03-19 11:11:22 +00:00
2015-05-22 09:44:44 +01:00
2015-02-27 20:31:28 +00:00
2015-09-02 00:37:58 +01:00
2015-07-30 10:18:43 +01:00
2015-09-02 00:29:00 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-11-24 21:54:38 +01:00
2015-05-05 19:50:12 +01:00
2015-01-07 02:15:35 +01:00
2015-12-19 14:44:03 +00:00
2015-10-23 20:32:58 +02:00
2015-04-16 13:50:01 -04:00