From 8cc4512e5be3390f0fee83c400af76b1cd6118ab Mon Sep 17 00:00:00 2001 From: Frank Mertens Date: Tue, 3 Sep 2024 19:56:00 +0200 Subject: [PATCH] Added a Kconfig switch to enabled/disable wolfSSL debugging more easily --- Kconfig | 7 +++++++ port/user_settings.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/Kconfig b/Kconfig index 416607c..a59c335 100644 --- a/Kconfig +++ b/Kconfig @@ -23,4 +23,11 @@ menu "wolfSSL" Note: This option enables mandatory OCSP certificate status checking using OCSP stapling version 1 or 2. The TLS server the client is connecting to must support either of the two TLS extensions. + config WOLFSSL_DEBUGGING + bool "Enable wolfSSL debugging" + default n + help + Enable wolfSSL debugging. Once debugging is enabled sections of code between wolfSSL_Debugging_ON() and + wolfSSL_Debugging_OFF() will generate detailed debug messages. + endmenu # wolfSSL diff --git a/port/user_settings.h b/port/user_settings.h index c969a93..fc3cc45 100755 --- a/port/user_settings.h +++ b/port/user_settings.h @@ -886,3 +886,7 @@ Turn on timer debugging (used when CPU cycles not available) #if !defined(SINGLE_THREADED) #include #endif + +#ifdef CONFIG_WOLFSSL_DEBUGGING +#define DEBUG_WOLFSSL +#endif