aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ConfigureChecks.cmake4
-rw-r--r--DefineOptions.cmake1
-rw-r--r--config.h.cmake3
3 files changed, 8 insertions, 0 deletions
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