mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
Avoid unused variable warning in TLS 1.3 PSK binder calculation
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
@@ -628,6 +628,11 @@ int mbedtls_ssl_tls1_3_create_psk_binder( mbedtls_ssl_context *ssl,
|
|||||||
mbedtls_md_info_t const *md_info = mbedtls_md_info_from_type( md_type );
|
mbedtls_md_info_t const *md_info = mbedtls_md_info_from_type( md_type );
|
||||||
size_t const md_size = mbedtls_md_get_size( md_info );
|
size_t const md_size = mbedtls_md_get_size( md_info );
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_DEBUG_C)
|
||||||
|
ssl = NULL; /* make sure we don't use it except for debug */
|
||||||
|
((void) ssl);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* We should never call this function with an unknown hash,
|
/* We should never call this function with an unknown hash,
|
||||||
* but add an assertion anyway. */
|
* but add an assertion anyway. */
|
||||||
if( md_info == 0 )
|
if( md_info == 0 )
|
||||||
|
Reference in New Issue
Block a user