Move mbedtls_test_hook_error_add from error.c to helpers.c

This commit moves mbedtls_test_hook_error_add from error.c to helpers.c.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
Harry Ramsey 2024-10-18 12:25:20 +01:00
parent c44f67b581
commit 924dca9d39
2 changed files with 5 additions and 4 deletions

View File

@ -152,8 +152,4 @@ void mbedtls_strerror(int ret, char *buf, size_t buflen)
#endif /* MBEDTLS_ERROR_C */
#if defined(MBEDTLS_TEST_HOOKS)
void (*mbedtls_test_hook_error_add)(int, int, const char *, int);
#endif
#endif /* MBEDTLS_ERROR_C || MBEDTLS_ERROR_STRERROR_DUMMY */

View File

@ -717,4 +717,9 @@ void mbedtls_test_err_add_check(int high, int low,
line, file);
}
}
#if defined(MBEDTLS_TEST_HOOKS)
void (*mbedtls_test_hook_error_add)(int, int, const char *, int);
#endif
#endif /* MBEDTLS_TEST_HOOKS */