]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: ssl: Don't report read data as early data with AWS-LC
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 12 Mar 2026 16:31:43 +0000 (17:31 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 12 Mar 2026 16:31:12 +0000 (17:31 +0100)
commit4102461dd621303d89a0f547cfec9d89f1db6113
tree23eccd351bd45cf1ac6c99eae30635ab35f12294
parent13d13691b5dd16e6da48a270894d85e66c315b77
BUG/MEDIUM: ssl: Don't report read data as early data with AWS-LC

To read early data with AWS-LC (and BoringSSL), we have to use
SSL_read(). But SSL_read() will also try to do the handshake if it
hasn't been done yet, and at some point will do the handshake and will
return data that are actually not early data. So use SSL_in_early_data()
to make sure that the data we received are actually early data, and only
if so add the CO_FL_EARLY_DATA flag. Otherwise any data first received will be
considered early, and a Early-data header will be added.
As this bug was introduced by 76ba026548975a6d1bc23d1344807c64d994bf1e,
it should be backported with it.
src/ssl_sock.c