mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-25 13:43:31 +00:00
Fix code style (for real this time, hopefully)
For some reason I didn't think about other files in the previous commit. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
4bc15d89cb
commit
9ec6d45e99
@ -59,11 +59,12 @@ static inline void mbedtls_codepath_reset(void)
|
|||||||
*/
|
*/
|
||||||
#define ASSERT_BIGNUM_CODEPATH(path, ret, E) \
|
#define ASSERT_BIGNUM_CODEPATH(path, ret, E) \
|
||||||
do { \
|
do { \
|
||||||
if((ret)!=0 || (E).n == 0) \
|
if ((ret) != 0 || (E).n == 0) { \
|
||||||
TEST_ASSERT(mbedtls_codepath_check == (path) || \
|
TEST_ASSERT(mbedtls_codepath_check == (path) || \
|
||||||
mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST); \
|
mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST); \
|
||||||
else \
|
} else { \
|
||||||
TEST_EQUAL(mbedtls_codepath_check, (path)); \
|
TEST_EQUAL(mbedtls_codepath_check, (path)); \
|
||||||
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/** Check the codepath taken and fail if it doesn't match.
|
/** Check the codepath taken and fail if it doesn't match.
|
||||||
@ -80,11 +81,12 @@ static inline void mbedtls_codepath_reset(void)
|
|||||||
*/
|
*/
|
||||||
#define ASSERT_RSA_CODEPATH(path, ret) \
|
#define ASSERT_RSA_CODEPATH(path, ret) \
|
||||||
do { \
|
do { \
|
||||||
if((ret)!=0) \
|
if ((ret) != 0) { \
|
||||||
TEST_ASSERT(mbedtls_codepath_check == (path) || \
|
TEST_ASSERT(mbedtls_codepath_check == (path) || \
|
||||||
mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST); \
|
mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST); \
|
||||||
else \
|
} else { \
|
||||||
TEST_EQUAL(mbedtls_codepath_check, (path)); \
|
TEST_EQUAL(mbedtls_codepath_check, (path)); \
|
||||||
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif /* MBEDTLS_TEST_HOOKS && !MBEDTLS_THREADING_C */
|
#endif /* MBEDTLS_TEST_HOOKS && !MBEDTLS_THREADING_C */
|
||||||
|
|
||||||
|
@ -36,4 +36,3 @@ void mbedtls_codepath_test_hooks_teardown(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif /* MBEDTLS_TEST_HOOKS && !MBEDTLS_THREADING_C */
|
#endif /* MBEDTLS_TEST_HOOKS && !MBEDTLS_THREADING_C */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user