aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2018-02-28 10:24:48 -0600
committerAndreas Schneider <asn@cryptomilk.org>2018-06-04 16:55:18 +0200
commitc6ee41bff3dd8c4ecae53051f4d629e90908143e (patch)
tree532e293c4c4f15f3637d12ad0f6f65407582887e
parent5012a9c146c63032af59f264062b9e96c262bc66 (diff)
downloadlibssh-c6ee41bff3dd8c4ecae53051f4d629e90908143e.tar.gz
libssh-c6ee41bff3dd8c4ecae53051f4d629e90908143e.tar.xz
libssh-c6ee41bff3dd8c4ecae53051f4d629e90908143e.zip
cmake: add WITH_PACKET_DEBUG option
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-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