Introducing option SSL_OP_IGNORE_UNEXPECTED_EOF
authorDmitry Belyavskiy <beldmit@gmail.com>
Tue, 5 May 2020 13:20:42 +0000 (16:20 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Tue, 19 May 2020 16:04:11 +0000 (19:04 +0300)
commit09b90e0ed7915809fcd4ee1e250d881b77d06d45
tree897a351d8f49b6f575bf54bba4dd486b00ad31f7
parentfb420afc878fa38a5d8cf22e25cf7d438d39987a
Introducing option SSL_OP_IGNORE_UNEXPECTED_EOF

Partially fixes #11209.

Before OpenSSL 3.0 in case when peer does not send close_notify,
the behaviour was to set SSL_ERROR_SYSCALL error with errno 0.
This behaviour has changed. The SSL_OP_IGNORE_UNEXPECTED_EOF restores
the old behaviour for compatibility's sake.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11735)
CHANGES.md
apps/s_client.c
apps/s_server.c
doc/man1/openssl-s_client.pod.in
doc/man1/openssl-s_server.pod.in
doc/man3/SSL_CTX_set_options.pod
doc/man3/SSL_get_error.pod
doc/man3/SSL_shutdown.pod
include/openssl/ssl.h
ssl/record/rec_layer_s3.c