mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-21 15:41:00 +00:00
Fix test dependency
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
0c2d1afaf3
commit
6cc1734f3e
@ -30,10 +30,12 @@ void mbedtls_md_list()
|
|||||||
TEST_EQUAL(0, mbedtls_md_finish(&ctx, out));
|
TEST_EQUAL(0, mbedtls_md_finish(&ctx, out));
|
||||||
mbedtls_md_free(&ctx);
|
mbedtls_md_free(&ctx);
|
||||||
|
|
||||||
|
#if defined MBEDTLS_PSA_CRYPTO_C
|
||||||
/* Ensure that we can convert to and from a psa_algorithm_t */
|
/* Ensure that we can convert to and from a psa_algorithm_t */
|
||||||
psa_algorithm_t p = mbedtls_md_psa_alg_from_type(*md_type_ptr);
|
psa_algorithm_t p = mbedtls_md_psa_alg_from_type(*md_type_ptr);
|
||||||
TEST_ASSERT(p != PSA_ALG_NONE);
|
TEST_ASSERT(p != PSA_ALG_NONE);
|
||||||
TEST_EQUAL(*md_type_ptr, mbedtls_md_type_from_psa_alg(p));
|
TEST_EQUAL(*md_type_ptr, mbedtls_md_type_from_psa_alg(p));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user