Detect EOF while reading in libssl
authorMatt Caswell <matt@openssl.org>
Fri, 17 Jan 2020 17:39:19 +0000 (17:39 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 4 Feb 2020 14:39:29 +0000 (14:39 +0000)
commitd924dbf4ae127c68463bcbece04b6e06abc58928
tree465bacfdfae92f28ee84ae47fba82f4fb044f2fa
parent579422c85cf606c0ae1d4baf414010dc21da657a
Detect EOF while reading in libssl

If we hit an EOF while reading in libssl then we will report an error
back to the application (SSL_ERROR_SYSCALL) but errno will be 0. We add
an error to the stack (which means we instead return SSL_ERROR_SSL) and
therefore give a hint as to what went wrong.

Contains a partial fix for #10880

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10907)
crypto/bio/bss_sock.c
crypto/err/openssl.txt
include/openssl/bio.h
include/openssl/sslerr.h
ssl/record/rec_layer_s3.c
ssl/ssl_err.c