]> git.ipfire.org Git - thirdparty/openssl.git/commit
Introduce the PACKET_msg_start() function
authorMatt Caswell <matt@openssl.org>
Thu, 5 Jun 2025 13:41:55 +0000 (14:41 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 10 Jun 2025 16:19:04 +0000 (17:19 +0100)
commita14c9f994c1c4e31cf22f1bdb4c9d6d2e574053d
tree91375fbbc0fe3eed7dbee72583339030f57bf6cd
parentfa5b1a4965a9b51100be3d1bfa2e23cb3f319166
Introduce the PACKET_msg_start() function

This gives us the start of the buffer in use for the PACKET.

We then use this information when calculating the TLS PSK binder.
Previously we were assuming knowledge about where the buffer starts.
However, with ECH, we may be using a different buffer to normal so it is
better to ask the PACKET where the start of the buffer is.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27776)
include/internal/packet.h
ssl/statem/extensions_srvr.c
ssl/statem/statem.c