Skip to content

Commit

Permalink
Added a Kconfig switch to enabled/disable wolfSSL debugging more easily
Browse files Browse the repository at this point in the history
  • Loading branch information
frankencode committed Sep 3, 2024
1 parent f854e1e commit 8cc4512
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions port/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -886,3 +886,7 @@ Turn on timer debugging (used when CPU cycles not available)
#if !defined(SINGLE_THREADED)
#include <pthread.h>
#endif

#ifdef CONFIG_WOLFSSL_DEBUGGING
#define DEBUG_WOLFSSL
#endif

0 comments on commit 8cc4512

Please sign in to comment.