mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Change guard of mbedtls_ssl_cipher_to_psa() with USE_PSA_CRYPTO || SSL_PROTO_TLS1_3
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
@ -2137,7 +2137,7 @@ static inline int mbedtls_ssl_sig_alg_is_supported(
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
||||||
/* Corresponding PSA algorithm for MBEDTLS_CIPHER_NULL.
|
/* Corresponding PSA algorithm for MBEDTLS_CIPHER_NULL.
|
||||||
* Same value is used for PSA_ALG_CATEGORY_CIPHER, hence it is
|
* Same value is used for PSA_ALG_CATEGORY_CIPHER, hence it is
|
||||||
* guaranteed to not be a valid PSA algorithm identifier.
|
* guaranteed to not be a valid PSA algorithm identifier.
|
||||||
@ -2167,9 +2167,7 @@ psa_status_t mbedtls_ssl_cipher_to_psa( mbedtls_cipher_type_t mbedtls_cipher_typ
|
|||||||
psa_algorithm_t *alg,
|
psa_algorithm_t *alg,
|
||||||
psa_key_type_t *key_type,
|
psa_key_type_t *key_type,
|
||||||
size_t *key_size );
|
size_t *key_size );
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
|
||||||
/**
|
/**
|
||||||
* \brief Convert given PSA status to mbedtls error code.
|
* \brief Convert given PSA status to mbedtls error code.
|
||||||
*
|
*
|
||||||
|
@ -1838,7 +1838,7 @@ mbedtls_ssl_mode_t mbedtls_ssl_get_mode_from_ciphersuite(
|
|||||||
return( mbedtls_ssl_get_actual_mode( base_mode, encrypt_then_mac ) );
|
return( mbedtls_ssl_get_actual_mode( base_mode, encrypt_then_mac ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
||||||
psa_status_t mbedtls_ssl_cipher_to_psa( mbedtls_cipher_type_t mbedtls_cipher_type,
|
psa_status_t mbedtls_ssl_cipher_to_psa( mbedtls_cipher_type_t mbedtls_cipher_type,
|
||||||
size_t taglen,
|
size_t taglen,
|
||||||
psa_algorithm_t *alg,
|
psa_algorithm_t *alg,
|
||||||
@ -1983,7 +1983,7 @@ psa_status_t mbedtls_ssl_cipher_to_psa( mbedtls_cipher_type_t mbedtls_cipher_typ
|
|||||||
|
|
||||||
return PSA_SUCCESS;
|
return PSA_SUCCESS;
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
#endif /* MBEDTLS_USE_PSA_CRYPTO || MBEDTLS_SSL_PROTO_TLS1_3 */
|
||||||
|
|
||||||
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_SSL_SRV_C)
|
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_SSL_SRV_C)
|
||||||
int mbedtls_ssl_conf_dh_param_bin( mbedtls_ssl_config *conf,
|
int mbedtls_ssl_conf_dh_param_bin( mbedtls_ssl_config *conf,
|
||||||
|
Reference in New Issue
Block a user