22 #ifndef MBEDTLS_ERROR_H 23 #define MBEDTLS_ERROR_H 25 #if !defined(MBEDTLS_CONFIG_FILE) 28 #include MBEDTLS_CONFIG_FILE 33 #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ 34 !defined(inline) && !defined(__cplusplus) 35 #define inline __inline 120 #define MBEDTLS_ERR_ERROR_GENERIC_ERROR -0x0001 122 #define MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED -0x006E 130 #define MBEDTLS_ERROR_ADD( high, low ) \ 131 mbedtls_error_add( high, low, __FILE__, __LINE__ ) 133 #if defined(MBEDTLS_TEST_HOOKS) 138 extern void (*mbedtls_test_hook_error_add)( int, int,
const char *, int );
160 const char *file,
int line )
162 #if defined(MBEDTLS_TEST_HOOKS) 163 if( *mbedtls_test_hook_error_add != NULL )
164 ( *mbedtls_test_hook_error_add )( high, low, file, line );
169 return( high + low );
void mbedtls_strerror(int errnum, char *buffer, size_t buflen)
Translate a mbed TLS error code into a string representation, Result is truncated if necessary and al...
Configuration options (set of defines)
static int mbedtls_error_add(int high, int low, const char *file, int line)
Combines a high-level and low-level error code together.
const char * mbedtls_high_level_strerr(int error_code)
Translate the high-level part of an Mbed TLS error code into a string representation.
const char * mbedtls_low_level_strerr(int error_code)
Translate the low-level part of an Mbed TLS error code into a string representation.