mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Declare conversion function even without 1.2
In 2.28 we may only enable TLS 1.0 or 1.1 in which case this function is still needed. Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
@ -624,9 +624,7 @@ exit:
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_SSL_PROTO_TLS1) || MBEDTLS_SSL_PROTO_TLS1_1 */
|
#endif /* MBEDTLS_SSL_PROTO_TLS1) || MBEDTLS_SSL_PROTO_TLS1_1 */
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
|
|
||||||
static int mbedtls_ssl_md_error_from_psa(psa_status_t status)
|
static int mbedtls_ssl_md_error_from_psa(psa_status_t status)
|
||||||
{
|
{
|
||||||
switch (status) {
|
switch (status) {
|
||||||
@ -641,6 +639,10 @@ static int mbedtls_ssl_md_error_from_psa(psa_status_t status)
|
|||||||
return MBEDTLS_ERR_MD_HW_ACCEL_FAILED;
|
return MBEDTLS_ERR_MD_HW_ACCEL_FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
||||||
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
|
|
||||||
static psa_status_t setup_psa_key_derivation(psa_key_derivation_operation_t *derivation,
|
static psa_status_t setup_psa_key_derivation(psa_key_derivation_operation_t *derivation,
|
||||||
psa_key_id_t key,
|
psa_key_id_t key,
|
||||||
|
Reference in New Issue
Block a user