mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-14 03:22:56 +00:00
Change SSL debug API in the library
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user