From f8bfa69060b3b252818fd5ded46b4fe88b5f894c Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Wed, 6 Nov 2019 18:21:39 +0700 Subject: [PATCH] rsa test: fix a warning --- components/mbedtls/test/test_rsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mbedtls/test/test_rsa.c b/components/mbedtls/test/test_rsa.c index 80f36a4694..f1185160b9 100644 --- a/components/mbedtls/test/test_rsa.c +++ b/components/mbedtls/test/test_rsa.c @@ -241,14 +241,14 @@ static void test_cert(const char *cert, const uint8_t *expected_output, size_t o mbedtls_x509_crt_free(&crt); } +#ifdef CONFIG_MBEDTLS_HARDWARE_MPI + static int myrand(void *rng_state, unsigned char *output, size_t len) { size_t olen; return mbedtls_hardware_poll(rng_state, output, len, &olen); } -#ifdef CONFIG_MBEDTLS_HARDWARE_MPI - TEST_CASE("test performance RSA key operations", "[bignum][ignore]") { mbedtls_rsa_context rsa;