mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-12 04:05:34 +00:00
Don't use idiom if( func() )
but always add explicit value check
This commit is contained in:
parent
3d4261bb21
commit
5916c99cc3
|
@ -3869,7 +3869,7 @@ static int ssl_parse_client_key_exchange( mbedtls_ssl_context *ssl )
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
/* For opaque PSKs, we perform the PSK-to-MS derivation atomatically
|
/* For opaque PSKs, we perform the PSK-to-MS derivation atomatically
|
||||||
* and skip the intermediate PMS. */
|
* and skip the intermediate PMS. */
|
||||||
if( ssl_use_opaque_psk( ssl ) )
|
if( ssl_use_opaque_psk( ssl ) == 1 )
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "skip PMS generation for opaque PSK" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 1, ( "skip PMS generation for opaque PSK" ) );
|
||||||
else
|
else
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||||
|
|
Loading…
Reference in a new issue