File debug.h
Functions for controlling and providing debug output from the library.
Defines
-
MBEDTLS_DEBUG_STRIP_PARENS(...)
-
MBEDTLS_SSL_DEBUG_MSG(level, args)
-
MBEDTLS_SSL_DEBUG_RET(level, text, ret)
-
MBEDTLS_SSL_DEBUG_BUF(level, text, buf, len)
-
MBEDTLS_SSL_DEBUG_CRT(level, text, crt)
-
MBEDTLS_PRINTF_ATTRIBUTE(string_index, first_to_check)
Mark a function as having printf attributes, and thus enable checking via -wFormat and other flags. This does nothing on builds with compilers that do not support the format attribute
Module: library/debug.c Caller:
This module provides debugging functions.
-
MBEDTLS_PRINTF_SIZET
-
MBEDTLS_PRINTF_SIZET_HEX
-
MBEDTLS_PRINTF_LONGLONG
Functions
-
void mbedtls_debug_set_threshold(int threshold)
Set the threshold error level to handle globally all debug output. Debug messages that have a level over the threshold value are discarded. (Default value: 0 = No debug ).
- Parameters:
threshold – threshold level of messages to filter on. Messages at a higher level will be discarded.
Debug levels
0 No debug
1 Error
2 State change
3 Informational
4 Verbose