Eneas U de Queiroz 2e8a4db9b6 openssl: revert EOF detection change in 1.1.1
This adds patches to avoid possible application breakage caused by a
change in behavior introduced in 1.1.1e.  It affects at least nginx,
which logs error messages such as:
nginx[16652]: [crit] 16675#0: *358 SSL_read() failed (SSL: error:
4095126:SSL routines:ssl3_read_n:unexpected eof while reading) while
keepalive, client: xxxx, server: [::]:443

Openssl commits db943f4 (Detect EOF while reading in libssl), and
22623e0 (Teach more BIOs how to handle BIO_CTRL_EOF) changed the
behavior when encountering an EOF in SSL_read().  Previous behavior was
to return SSL_ERROR_SYSCALL, but errno would still be 0.  The commits
being reverted changed it to SSL_ERRO_SSL, and add an error to the
stack, which is correct.  Unfortunately this affects a number of
applications that counted on the old behavior, including nginx.

The reversion was discussed in openssl/openssl#11378, and implemented as
PR openssl/openssl#11400.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-03-28 13:03:02 +01:00
..
2019-09-21 01:09:30 +02:00
2019-01-24 10:39:30 +01:00
2020-02-22 16:34:57 +01:00
2020-01-17 00:42:49 +02:00
2019-06-19 22:44:28 +02:00
2019-01-24 10:39:30 +01:00
2019-11-01 21:19:40 +01:00
2019-01-24 10:39:30 +01:00
2019-01-24 10:39:30 +01:00
2020-03-05 20:48:58 +01:00
2020-01-05 19:36:45 +01:00
2019-11-23 21:32:04 +01:00
2019-02-26 23:20:04 +01:00
2019-10-12 23:43:08 +02:00
2020-03-25 19:34:34 +01:00
2019-12-26 23:30:57 +01:00