From c6ee41bff3dd8c4ecae53051f4d629e90908143e Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 28 Feb 2018 10:24:48 -0600 Subject: cmake: add WITH_PACKET_DEBUG option Signed-off-by: Aris Adamantiadis Reviewed-by: Andreas Schneider --- ConfigureChecks.cmake | 4 ++++ DefineOptions.cmake | 1 + config.h.cmake | 3 +++ 3 files changed, 8 insertions(+) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index fc42d982..4f0ecf8a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -330,6 +330,10 @@ if (WITH_DEBUG_CRYPTO) set(DEBUG_CRYPTO 1) endif (WITH_DEBUG_CRYPTO) +if (WITH_DEBUG_PACKET) + set(DEBUG_PACKET 1) +endif (WITH_DEBUG_PACKET) + if (WITH_DEBUG_CALLTRACE) set(DEBUG_CALLTRACE 1) endif (WITH_DEBUG_CALLTRACE) diff --git a/DefineOptions.cmake b/DefineOptions.cmake index 43457e54..6eda2c23 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -5,6 +5,7 @@ option(WITH_SFTP "Build with SFTP support" ON) option(WITH_SERVER "Build with SSH server support" ON) option(WITH_STATIC_LIB "Build with a static library" OFF) option(WITH_DEBUG_CRYPTO "Build with cryto debug output" OFF) +option(WITH_DEBUG_PACKET "Build with packet debug output" OFF) option(WITH_DEBUG_CALLTRACE "Build with calltrace debug output" ON) option(WITH_GCRYPT "Compile against libgcrypt" OFF) option(WITH_MBEDTLS "Compile against libmbedtls" OFF) diff --git a/config.h.cmake b/config.h.cmake index 3a14b450..50a50ed7 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -214,6 +214,9 @@ /* Define to 1 if you want to enable debug output for crypto functions */ #cmakedefine DEBUG_CRYPTO 1 +/* Define to 1 if you want to enable debug output for packet functions */ +#cmakedefine DEBUG_PACKET 1 + /* Define to 1 if you want to enable pcap output support (experimental) */ #cmakedefine WITH_PCAP 1 -- cgit v1.2.3