]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: fix connection failures with TLS 1.3 and GnuTLS
authorPeter Wu <peter@lekensteyn.nl>
Sun, 20 Oct 2019 17:10:31 +0000 (18:10 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Oct 2019 18:35:05 +0000 (20:35 +0200)
commit68805580209cfaa50b2400d1a2e6c66500001395
tree9ac8a95238fff8a3e49fda954787836c2ffd1c49
parentcd8ad5965f702647ec3f72d07d91bb394a07e1bb
resolved: fix connection failures with TLS 1.3 and GnuTLS

Prefer TLS 1.3 before TLS 1.2 for DNS-over-TLS support, otherwise
servers compliant with RFC 8446 might end up agreeing TLS 1.2 plus a
downgrade signal which is not expected by GnuTLS clients. This manifests
in the following error:

    Failed to invoke gnutls_handshake: An illegal parameter has been received.

Fixes: #13528
Fixes: v242-962-g9c0624dcdb ("resolved: support TLS 1.3 when using GnuTLS for DNS-over-TLS")
src/resolve/resolved-dnstls-gnutls.c