summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-14 13:06:11 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-14 13:06:11 +0200
commit701fcc7c7e353def78d89d9ee0ca52d32fb894b9 (patch)
treee39e37e1bf8e8bd5d38885d059c61006ce90f172 /CMakeLists.txt
parentac235fb7d28da6690f5ef7d7dc37d40bcebbd87a (diff)
downloadfastd-701fcc7c7e353def78d89d9ee0ca52d32fb894b9.tar
fastd-701fcc7c7e353def78d89d9ee0ca52d32fb894b9.zip
Separate handshake from encryption method
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 3 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9e50c36..aa84c0f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,24 +6,17 @@ set(CMAKE_MODULE_PATH ${FASTD_SOURCE_DIR})
find_package(BISON 2.5 REQUIRED)
find_package(FLEX REQUIRED)
-find_package(UECC)
-find_package(NaCl)
+find_package(UECC REQUIRED)
+find_package(NaCl REQUIRED)
-if(UECC_FOUND AND NACL_FOUND)
- set(CRYPTO_FOUND TRUE)
-endif(UECC_FOUND AND NACL_FOUND)
-set(WITH_PROTOCOL_ECFXP ${CRYPTO_FOUND} CACHE BOOL "Include ec25519-fhmqvc-xsalsa20-poly1305 protocol")
+set(WITH_METHOD_XSALSA20_POLY1305 TRUE CACHE BOOL "Include xsalsa20-poly1305 method")
set(MAX_CONFIG_DEPTH 10 CACHE STRING "Maximum config include depth")
# Ensure the value is numeric
math(EXPR MAX_CONFIG_DEPTH_NUM ${MAX_CONFIG_DEPTH})
-if(WITH_PROTOCOL_ECFXP AND NOT CRYPTO_FOUND)
- MESSAGE(FATAL_ERROR "libuecc and NaCl are required for the ec25519-fhmqvc-xsalsa20-poly1305 protocol")
-endif(WITH_PROTOCOL_ECFXP AND NOT CRYPTO_FOUND)
-
configure_file(${FASTD_SOURCE_DIR}/config.h.in ${FASTD_BINARY_DIR}/config.h)
add_subdirectory(src)