mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-05 00:17:24 +00:00
Refactor macro-spanning if in ssl_tls12_client.c
Signed-off-by: David Horstmann <[email protected]>
This commit is contained in:
+3
-1
@@ -3451,9 +3451,11 @@ start_processing:
|
||||
if( ( ret = mbedtls_pk_verify_restartable( peer_pk,
|
||||
md_alg, hash, hashlen, p, sig_len, rs_ctx ) ) != 0 )
|
||||
{
|
||||
int send_alert_msg = 1;
|
||||
#if defined(MBEDTLS_SSL_ECP_RESTARTABLE_ENABLED)
|
||||
if( ret != MBEDTLS_ERR_ECP_IN_PROGRESS )
|
||||
send_alert_msg = ( ret != MBEDTLS_ERR_ECP_IN_PROGRESS );
|
||||
#endif
|
||||
if( send_alert_msg )
|
||||
mbedtls_ssl_send_alert_message(
|
||||
ssl,
|
||||
MBEDTLS_SSL_ALERT_LEVEL_FATAL,
|
||||
|
||||
Reference in New Issue
Block a user