Return SSL_ERROR_WANT_READ if SSL_shutdown() encounters handshake data
authorMatt Caswell <matt@openssl.org>
Thu, 21 Jun 2018 12:30:38 +0000 (13:30 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 27 Jun 2018 09:03:20 +0000 (10:03 +0100)
commitba70904949d2f9eec160043bf9a97182b33a2b82
tree57b3f96794f1fcc0b6ef596decd5fb5ba796d5c2
parentc748834ff7af7949519d2820a79ec35e809b5a71
Return SSL_ERROR_WANT_READ if SSL_shutdown() encounters handshake data

In the case where we are shutdown for writing and awaiting a close_notify
back from a subsequent SSL_shutdown() call we skip over handshake data
that is received. This should not be treated as an error - instead it
should be signalled with SSL_ERROR_WANT_READ.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6340)
ssl/record/rec_layer_s3.c
test/sslapitest.c