aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2022-10-11 13:49:57 +0100
committerMichael Brown <mcb30@ipxe.org>2022-10-11 14:37:12 +0100
commit80c45c5c71af76e4313c37528d29aa485b247073 (patch)
tree1aaabb621966e59777ad31db443709dd36330472 /src/include
parent028aac99a397f591de6cc6f6f2b4763f55aa8962 (diff)
downloadipxe-80c45c5c71af76e4313c37528d29aa485b247073.tar.gz
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/tls.h4
1 files changed, 4 insertions, 0 deletions
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 */