mirror of
https://github.com/ipxe/ipxe
synced 2026-10-07 15:05:42 +03:00
[tls] Use null handshake digest algorithm for the null cipher suite
A cipher suite's handshake digest algorithm is used only once that cipher suite has been selected. The null cipher suite can never be explicitly selected, and so its handshake digest algorithm can never be used and is currently left as a NULL pointer. Set the null cipher suite's handshake digest algorithm to be the null digest algorithm, to create an invariant that all pointer fields have non-NULL values in all cipher suites. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -511,6 +511,7 @@ struct tls_cipher_suite tls_cipher_suite_null = {
|
||||
.pubkey = &pubkey_null,
|
||||
.cipher = &cipher_null,
|
||||
.digest = &digest_null,
|
||||
.handshake = &digest_null,
|
||||
};
|
||||
|
||||
/** Number of supported cipher suites */
|
||||
|
||||
Reference in New Issue
Block a user