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 cc1f450..dc88af2 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -1656,7 +1656,8 @@
salt = session_hash;
handshake->calc_verify( ssl, session_hash, &salt_len );
- MBEDTLS_SSL_DEBUG_BUF( 3, "session hash", session_hash, salt_len );
+ MBEDTLS_SSL_DEBUG_BUF( 3, "session hash for extended master secret",
+ session_hash, salt_len );
}
#endif /* MBEDTLS_SSL_EXTENDED_MS_ENABLED */