1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2026-01-06 11:41:12 +03:00

Fix conditional compilation (MBEDTLS_USE_PSA_CRYPTO)

Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemyslaw Stekiel
2022-01-13 15:56:33 +01:00
parent 2e9711f766
commit 1fe065b235
3 changed files with 9 additions and 3 deletions

View File

@@ -669,6 +669,7 @@ typedef int ssl_tls_prf_t(const unsigned char *, size_t, const char *,
const unsigned char *, size_t,
unsigned char *, size_t);
#if defined(MBEDTLS_USE_PSA_CRYPTO)
static int psa_status_to_mbedtls( psa_status_t status )
{
switch( status )
@@ -683,6 +684,7 @@ static int psa_status_to_mbedtls( psa_status_t status )
return( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
}
}
#endif /* MBEDTLS_USE_PSA_CRYPTO */
/*
* Populate a transform structure with session keys and all the other