From 80c45c5c71af76e4313c37528d29aa485b247073 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 11 Oct 2022 13:49:57 +0100 Subject: [tls] Record ServerKeyExchange record, if provided Accept and record the ServerKeyExchange record, which is required for key exchange mechanisms such as Ephemeral Diffie-Hellman (DHE). Signed-off-by: Michael Brown --- src/include/ipxe/tls.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include/ipxe/tls.h') diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h index 65608970a..672cfbd7e 100644 --- a/src/include/ipxe/tls.h +++ b/src/include/ipxe/tls.h @@ -310,6 +310,10 @@ struct tls_connection { uint8_t server_random[32]; /** Client random bytes */ struct tls_client_random client_random; + /** Server Key Exchange record (if any) */ + void *server_key; + /** Server Key Exchange record length */ + size_t server_key_len; /** MD5+SHA1 context for handshake verification */ uint8_t handshake_md5_sha1_ctx[MD5_SHA1_CTX_SIZE]; /** SHA256 context for handshake verification */ -- cgit v1.2.3-55-g7522