Set message_size correctly when switching to the legacy stack.
authorjsing <jsing@openbsd.org>
Fri, 3 Sep 2021 13:16:54 +0000 (13:16 +0000)
committerjsing <jsing@openbsd.org>
Fri, 3 Sep 2021 13:16:54 +0000 (13:16 +0000)
commitfefb9253d82f6d15b401f88cae833288a53b49dc
tree856b014a02ae4307e19733f092b2185b6bb05ac3
parentbc7d119172dbdca76666fcd6b6438c8ff5226d3e
Set message_size correctly when switching to the legacy stack.

The message_size variable is not actually the handshake message size,
rather the number of bytes contained within the handshake message, hence
we have to subtract the length of the handshake message header.

ok beck@
lib/libssl/tls13_legacy.c