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 7706b6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,7 @@ idf_component_register(
)

target_compile_definitions(${COMPONENT_LIB} PUBLIC WOLFSSL_USER_SETTINGS)

if(CONFIG_WOLFSSL_DEBUGGING)
target_compile_definitions(${COMPONENT_LIB} PUBLIC DEBUG_WOLFSSL)
endif()
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

0 comments on commit 7706b6e

Please sign in to comment.