1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-24 17:41:01 +03:00

Move MBEDTLS_ERR_ADD macro and function to common.*

`error.c` is a file generated from `error.h` and thus cannot contain the code
that was previously added. This commit fixes that issue by moving the
`MBEDTLS_ERR_ADD` macro and associated function and function pointer into
`common.h` and `common.c`.

Also fix a typo in `tests/include/test/helpers.h` where tabs were accidentally
used instead of spaces.

Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
Chris Jones
2021-01-12 15:21:57 +00:00
parent 713e4e77b4
commit 5e8805afeb
7 changed files with 49 additions and 26 deletions

View File

@@ -210,13 +210,6 @@
#include "mbedtls/xtea.h"
#endif
#if defined(MBEDTLS_TEST_HOOKS)
int mbedtls_err_add( int high, int low, const char *file, int line ) {
if( mbedtls_test_err_add_hook != NULL )
(*mbedtls_test_err_add_hook)( high, low, file, line );
return ( high + low );
}
#endif
const char * mbedtls_high_level_strerr( int error_code )
{