From 202466d8a6198abaf252992e0ea08b718ad85531 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 25 Aug 2026 18:07:55 +0100 Subject: [PATCH] [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 --- src/net/tls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/tls.c b/src/net/tls.c index a427e1f6a..08a837fc0 100644 --- a/src/net/tls.c +++ b/src/net/tls.c @@ -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 */