Use more specific name in debug message for testing
While 'session hash' is currently unique, so suitable to prove that the
intended code path has been taken, it's a generic enough phrase that in the
future we might add other debug messages containing it in completely unrelated
code paths. In order to future-proof the accuracy of the test, let's use a
more specific string.
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index b4e7960..f990e8c 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -1143,7 +1143,8 @@
handshake->calc_verify( ssl, session_hash, &hash_len );
- MBEDTLS_SSL_DEBUG_BUF( 3, "session hash", session_hash, hash_len );
+ MBEDTLS_SSL_DEBUG_BUF( 3, "session hash for extended master secret",
+ session_hash, hash_len );
ret = handshake->tls_prf( handshake->premaster, handshake->pmslen,
"extended master secret",