mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
[tls] Treat handshake digest algorithm as a session parameter
Simplify code by recording the active handshake digest algorithm as a session parameter. (Note that we must still accumulate digests for all supported algorithms, since we don't know which digest will eventually be used until we receive the Server Hello.) Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -201,6 +201,10 @@ struct tls_session {
|
||||
uint8_t handshake_md5_sha1_ctx[MD5_SHA1_CTX_SIZE];
|
||||
/** SHA256 context for handshake verification */
|
||||
uint8_t handshake_sha256_ctx[SHA256_CTX_SIZE];
|
||||
/** Digest algorithm used for handshake verification */
|
||||
struct digest_algorithm *handshake_digest;
|
||||
/** Digest algorithm context used for handshake verification */
|
||||
uint8_t *handshake_ctx;
|
||||
|
||||
/** TX sequence number */
|
||||
uint64_t tx_seq;
|
||||
|
||||
Reference in New Issue
Block a user