]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: Handle reading early data after writing better.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 23 Nov 2017 17:21:29 +0000 (18:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Nov 2017 18:35:28 +0000 (19:35 +0100)
commit90084a133dc9fef84bd8bb30bafa947941701515
treece3741bb8665d628ebe3470fa7a96fceb5577cf2
parent51753458c419527eb706cc417692bda461df85a2
MINOR: ssl: Handle reading early data after writing better.

It can happen that we want to read early data, write some, and then continue
reading them.
To do so, we can't reuse tmp_early_data to store the amount of data sent,
so introduce a new member.
If we read early data, then ssl_sock_to_buf() is now the only responsible
for getting back to the handshake, to make sure we don't miss any early data.
include/proto/connection.h
include/types/connection.h
src/ssl_sock.c