]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[tls] Parse ServerKeyExchange record immediately
authorMichael Brown <mcb30@ipxe.org>
Sun, 19 Jul 2026 14:08:57 +0000 (15:08 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 19 Jul 2026 14:30:10 +0000 (15:30 +0100)
commit05e6256ceadd9c5608456cb0543fa6e53ee830a8
treeb673c64a75fb2b92a9810dc44b5228be8222d566
parent9d6b3600ce025943c5c46f6dddabaca09d6f5df1
[tls] Parse ServerKeyExchange record immediately

As of commit 433a8f5 ("[tls] Retain a reference in the key schedule to
the bound identity"), the act of binding the server identity is
logically separated from the act of validating the server identity.
We may therefore bind the server identity (by verifying the signature
over the Diffie-Hellman parameters) and agree the ephemeral shared
secret immediately upon receiving the ServerKeyExchange record, rather
than deferring the verification until we have a validated identity.

This provides a closer match to the flow required for TLS version 1.3,
where the ephemeral shared secret is used for all messages after
ServerHello, and so must always be agreed prior to validation.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/tls.h
src/net/tls.c