aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-16 15:47:15 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-16 15:47:15 +0000
commit59f04bfddd47a963d0039094003fe82412df3ab5 (patch)
treee171cd498f1fd7916e53bc91ce2397284c334f46
parent5b2586312a8793ca056294665fed597c7fc6791a (diff)
downloadlibssh-59f04bfddd47a963d0039094003fe82412df3ab5.tar.gz
libssh-59f04bfddd47a963d0039094003fe82412df3ab5.tar.xz
libssh-59f04bfddd47a963d0039094003fe82412df3ab5.zip
Add option to enable crypto debug output.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@509 7dcaeef0-15fb-0310-b436-a5af3365683c
-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 bbba27ce..b8e8a95d 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -62,3 +62,7 @@ if (WITH_SERVER)
set(WITH_SERVER 1)
endif (WITH_SERVER)
+if (WITH_DEBUG_CRYPTO)
+ set(DEBUG_CRYPTO 1)
+endif (WITH_DEBUG_CRYPTO)
+
diff --git a/DefineOptions.cmake b/DefineOptions.cmake
index 91ce25f7..cec5d6bc 100644
--- a/DefineOptions.cmake
+++ b/DefineOptions.cmake
@@ -2,3 +2,4 @@ option(WITH_LIBZ "Build with ZLIB support" ON)
option(WITH_SSH1 "Build with SSH1 support" OFF)
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 debut output" OFF)
diff --git a/config.h.cmake b/config.h.cmake
index de60ccc1..2ff415e9 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -68,6 +68,9 @@
/* Define to 1 if you want to enable server support */
#cmakedefine WITH_SERVER 1
+/* Define to 1 if you want to enable debug output for crypto functions */
+#cmakedefine DEBUG_CRYPTO 1
+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD