]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix k5tls module for OpenSSL 3 1196/head
authorRobbie Harwood <rharwood@redhat.com>
Sat, 29 May 2021 16:05:49 +0000 (12:05 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 18 Jun 2021 20:05:47 +0000 (16:05 -0400)
commitaa9b4a2a64046afd2fab7cb49c346295874a5fb6
tree3e077974780e859b3e67dbd3b8e528e24c7f6041
parentd6bf42279675100e3e4fe7c6e08eef74d49624cb
Fix k5tls module for OpenSSL 3

Starting in OpenSSL 3, connection termination without a close_notify
alert causes SSL_read() to return SSL_ERROR_SSL instead of
SSL_ERROR_SYSCALL.  OpenSSL 3 also provides a new option
SSL_OP_IGNORE_UNEXPECTED_EOF which allows an application to explicitly
ignore possible truncation attacks and receive SSL_ERROR_ZERO_RETURN
instead.

Remove the call to SSL_CTX_get_options() since SSL_CTX_set_options()
doesn't clear existing options.

[ghudson@mit.edu: edited commit message and comment]
src/plugins/tls/k5tls/openssl.c