Parcourir la source

rsa test: fix a warning

Anton Maklakov il y a 6 ans
Parent
commit
f8bfa69060
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      components/mbedtls/test/test_rsa.c

+ 2 - 2
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;