diff options
| author | Michael Brown | 2022-10-11 14:49:57 +0200 |
|---|---|---|
| committer | Michael Brown | 2022-10-11 15:37:12 +0200 |
| commit | 80c45c5c71af76e4313c37528d29aa485b247073 (patch) | |
| tree | 1aaabb621966e59777ad31db443709dd36330472 /src/include/ipxe/tls.h | |
| parent | [tls] Generate pre-master secret at point of sending ClientKeyExchange (diff) | |
| download | ipxe-80c45c5c71af76e4313c37528d29aa485b247073.tar.gz ipxe-80c45c5c71af76e4313c37528d29aa485b247073.tar.xz ipxe-80c45c5c71af76e4313c37528d29aa485b247073.zip | |
[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/ipxe/tls.h')
| -rw-r--r-- | src/include/ipxe/tls.h | 4 |
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 */ |
