mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
ssl_tls.c: Remove one unnecessary minor version check
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@@ -5264,7 +5264,7 @@ static int ssl_use_opaque_psk( mbedtls_ssl_context const *ssl )
|
|||||||
* [in] ssl: optionally used for debugging, EMS and PSA-PSK
|
* [in] ssl: optionally used for debugging, EMS and PSA-PSK
|
||||||
* debug: conf->f_dbg, conf->p_dbg
|
* debug: conf->f_dbg, conf->p_dbg
|
||||||
* EMS: passed to calc_verify (debug + session_negotiate)
|
* EMS: passed to calc_verify (debug + session_negotiate)
|
||||||
* PSA-PSA: minor_ver, conf
|
* PSA-PSA: conf
|
||||||
*/
|
*/
|
||||||
static int ssl_compute_master( mbedtls_ssl_handshake_params *handshake,
|
static int ssl_compute_master( mbedtls_ssl_handshake_params *handshake,
|
||||||
unsigned char *master,
|
unsigned char *master,
|
||||||
@@ -5325,7 +5325,6 @@ static int ssl_compute_master( mbedtls_ssl_handshake_params *handshake,
|
|||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO) && \
|
#if defined(MBEDTLS_USE_PSA_CRYPTO) && \
|
||||||
defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
|
defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
|
||||||
if( handshake->ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_PSK &&
|
if( handshake->ciphersuite_info->key_exchange == MBEDTLS_KEY_EXCHANGE_PSK &&
|
||||||
ssl->minor_ver == MBEDTLS_SSL_MINOR_VERSION_3 &&
|
|
||||||
ssl_use_opaque_psk( ssl ) == 1 )
|
ssl_use_opaque_psk( ssl ) == 1 )
|
||||||
{
|
{
|
||||||
/* Perform PSK-to-MS expansion in a single step. */
|
/* Perform PSK-to-MS expansion in a single step. */
|
||||||
|
Reference in New Issue
Block a user