Change SSL debug API in the library
This commit is contained in:
parent
79c4e3ee59
commit
fd474233c8
9 changed files with 93 additions and 149 deletions
|
@ -38,24 +38,6 @@
|
|||
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
|
||||
#define MBEDTLS_DEBUG_LOG_FULL 0 /**< Include file:line in log lines */
|
||||
#define MBEDTLS_DEBUG_LOG_RAW 1 /**< Only log raw debug lines */
|
||||
|
||||
/**
|
||||
* \name SECTION: Module settings
|
||||
*
|
||||
* The configuration options you can set for this module are in this section.
|
||||
* Either change them in config.h or define them on the compiler command line.
|
||||
* \{
|
||||
*/
|
||||
|
||||
#if !defined(MBEDTLS_DEBUG_DFL_MODE)
|
||||
#define MBEDTLS_DEBUG_DFL_MODE MBEDTLS_DEBUG_LOG_FULL /**< Default log: Full or Raw */
|
||||
#endif
|
||||
|
||||
/* \} name SECTION: Module settings */
|
||||
|
||||
|
||||
#define MBEDTLS_SSL_DEBUG_MSG( level, args ) \
|
||||
mbedtls_debug_print_msg_free( ssl, level, __FILE__, __LINE__, mbedtls_debug_fmt args )
|
||||
|
||||
|
@ -95,15 +77,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \brief Set the log mode for the debug functions globally
|
||||
* (Default value: MBEDTLS_DEBUG_DFL_MODE)
|
||||
*
|
||||
* \param log_mode The log mode to use (MBEDTLS_DEBUG_LOG_FULL or
|
||||
* MBEDTLS_DEBUG_LOG_RAW)
|
||||
*/
|
||||
void mbedtls_debug_set_log_mode( int log_mode );
|
||||
|
||||
/**
|
||||
* \brief Set the level threshold to handle globally. Messages that have a
|
||||
* level over the threshold value are ignored.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue