From 55a0456b670c5c72d7d13150c57f58f00edaa43d Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 24 Oct 2019 14:21:25 +0100 Subject: [PATCH] Add cipher configuration options. --- CMakeLists.txt | 17 +++++++++++++++++ cmake/include/cmakeconfig.h.in | 8 ++++++++ 2 files changed, 25 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55803a0e..eb4648dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,6 +113,15 @@ cmake_dependent_option(ENABLE_DEBUG_DAEMON "Enable daemon debugging messages." O cmake_dependent_option(ENABLE_DEBUG_DNSSEC "Enable DNSSEC debugging messages." OFF "NOT ENABLE_DEBUG_ALL" ON) cmake_dependent_option(ENABLE_DEBUG_SERVER "Enable server debugging messages." OFF "NOT ENABLE_DEBUG_ALL" ON) cmake_dependent_option(ENABLE_DEBUG_ANCHOR "Enable anchor debugging messages." OFF "NOT ENABLE_DEBUG_ALL" ON) + +option(ENABLE_SHA1 "Enable SHA1 RRSIG support." ON) +option(ENABLE_SHA2 "Enable SHA256 and SHA512 RRSIG support." ON) +option(ENABLE_GOST "Enable GOST support." ON) +option(ENABLE_ECDSA "Enable ECDSA support." ON) +option(ENABLE_DSA "Enable DSA support." ON) +option(ENABLE_ED25519 "Enable ED25519 support." ON) +option(ENABLE_ED448 "Enable ED448 support." ON) + # Above names chosen for user consistency. Now define substituted names. set(REQ_DEBUG ${ENABLE_DEBUG_REQ}) set(SCHED_DEBUG ${ENABLE_DEBUG_SCHED}) @@ -122,6 +131,14 @@ set(SEC_DEBUG ${ENABLE_DEBUG_DNSSEC}) set(SERVER_DEBUG ${ENABLE_DEBUG_SERVER}) set(ANCHOR_DEBUG ${ENABLE_DEBUG_ANCHOR}) +set(USE_SHA1 ${ENABLE_SHA1}) +set(USE_SHA2 ${ENABLE_SHA2}) +set(USE_GOST ${ENABLE_GOST}) +set(USE_ECDSA ${ENABLE_ECDSA}) +set(USE_DSA ${ENABLE_DSA}) +set(USE_ED25519 ${ENABLE_ED25519}) +set(USE_ED448 ${ENABLE_ED448}) + option(ENABLE_DEBUG_KEEP_CONNECTIONS_OPEN "Disable connection idle timeout. Do not enable.") mark_as_advanced(ENABLE_DEBUG_KEEP_CONNECTIONS_OPEN) set(KEEP_CONNECTIONS_OPEN_DEBUG ${ENABLE_DEBUG_KEEP_CONNECTIONS_OPEN}) diff --git a/cmake/include/cmakeconfig.h.in b/cmake/include/cmakeconfig.h.in index de1cc999..65d25819 100644 --- a/cmake/include/cmakeconfig.h.in +++ b/cmake/include/cmakeconfig.h.in @@ -175,6 +175,14 @@ #cmakedefine ANCHOR_DEBUG 1 #cmakedefine KEEP_CONNECTIONS_OPEN_DEBUG 1 +#cmakedefine USE_SHA1 1 +#cmakedefine USE_SHA2 1 +#cmakedefine USE_GOST 1 +#cmakedefine USE_ECDSA 1 +#cmakedefine USE_DSA 1 +#cmakedefine USE_ED25519 1 +#cmakedefine USE_ED448 1 + #cmakedefine HAVE_TARGET_ENDIANNESS #cmakedefine TARGET_IS_BIG_ENDIAN