]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: fix 0-RTT for BoringSSL
authorEmmanuel Hocdet <manu@gandi.net>
Mon, 5 Aug 2019 16:04:16 +0000 (18:04 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 7 Aug 2019 16:44:48 +0000 (18:44 +0200)
commitf967c31e75b087daeb1cc2cdba432df0b170f2f8
treeda4c5d15336eccb7a0e07ef776b1a34b0d3efe1f
parent1263540fe824c74bc3c668fec3476b880d65b27c
BUG/MINOR: ssl: fix 0-RTT for BoringSSL

Since BoringSSL commit 777a2391 "Hold off flushing NewSessionTicket until write.",
0-RTT doesn't work. It appears that half-RTT data (response from 0-RTT) never
worked before the BoringSSL fix. For HAProxy the regression come from 010941f8
"BUG/MEDIUM: ssl: Use the early_data API the right way.": the problem is link to
the logic of CO_FL_EARLY_SSL_HS used for OpenSSL. With BoringSSL, handshake is
done before reading early data, 0-RTT data and half-RTT data are processed as
normal data: CO_FL_EARLY_SSL_HS/CO_FL_EARLY_DATA is not needed, simply remove
it.

This should be backported to all versions till 1.8.
src/ssl_sock.c