From 59f04bfddd47a963d0039094003fe82412df3ab5 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 16 Apr 2009 15:47:15 +0000 Subject: [PATCH] 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 --- ConfigureChecks.cmake | 4 ++++ DefineOptions.cmake | 1 + config.h.cmake | 3 +++ 3 files changed, 8 insertions(+) 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