mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 10:01:03 +03:00
[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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user