From 12c77410eb9a97b123af3bab531f02893cf8ca29 Mon Sep 17 00:00:00 2001 From: TRodziewicz Date: Thu, 15 Jul 2021 16:12:54 +0200 Subject: [PATCH] Removing unneded extern declaration of a callback and including common.h where the cb is needed Signed-off-by: TRodziewicz --- include/mbedtls/error.h | 1 - tests/suites/main_test.function | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mbedtls/error.h b/include/mbedtls/error.h index f00b4f5b2..9a8690dc1 100644 --- a/include/mbedtls/error.h +++ b/include/mbedtls/error.h @@ -129,7 +129,6 @@ extern "C" { * Only used when invasive testing is enabled via MBEDTLS_TEST_HOOKS. */ extern void (*mbedtls_test_hook_error_add)( int, int, const char *, int ); -extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const char * file ); #endif /** diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index 80c730b8a..6a87e8099 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function @@ -24,6 +24,7 @@ #endif #include "mbedtls/build_info.h" +#include "common.h" /* Test code may use deprecated identifiers only if the preprocessor symbol * MBEDTLS_TEST_DEPRECATED is defined. When building tests, set