mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-06 07:10:41 +00:00
tls13: keys: Simplify code guard
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
9810b6d0b7
commit
a2900bcd1e
@ -1256,8 +1256,7 @@ int mbedtls_ssl_tls13_key_schedule_stage_handshake( mbedtls_ssl_context *ssl )
|
|||||||
unsigned char *shared_secret = NULL;
|
unsigned char *shared_secret = NULL;
|
||||||
size_t shared_secret_len = 0;
|
size_t shared_secret_len = 0;
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED) || \
|
#if defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_EPHEMERAL_ENABLED)
|
||||||
defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED)
|
|
||||||
/*
|
/*
|
||||||
* Compute ECDHE secret used to compute the handshake secret from which
|
* Compute ECDHE secret used to compute the handshake secret from which
|
||||||
* client_handshake_traffic_secret and server_handshake_traffic_secret
|
* client_handshake_traffic_secret and server_handshake_traffic_secret
|
||||||
@ -1311,8 +1310,7 @@ int mbedtls_ssl_tls13_key_schedule_stage_handshake( mbedtls_ssl_context *ssl )
|
|||||||
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED ||
|
#endif /* MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_EPHEMERAL_ENABLED */
|
||||||
MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute the Handshake Secret
|
* Compute the Handshake Secret
|
||||||
|
Loading…
Reference in New Issue
Block a user