aboutsummaryrefslogtreecommitdiff
path: root/DefineOptions.cmake
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-04-28 11:04:59 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-05-05 14:23:06 +0200
commite6aee24a1e3be68417e1ac4ab4a02c65bf9db637 (patch)
tree02ec3d0ee6fb0313ddc23410da2301098ab04b0e /DefineOptions.cmake
parent46499b1b9090b1e5d6a7d84998bc23ed71b3cf9c (diff)
downloadlibssh-e6aee24a1e3be68417e1ac4ab4a02c65bf9db637.tar.gz
libssh-e6aee24a1e3be68417e1ac4ab4a02c65bf9db637.tar.xz
libssh-e6aee24a1e3be68417e1ac4ab4a02c65bf9db637.zip
Add basic support for none cipher and MACs
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'DefineOptions.cmake')
-rw-r--r--DefineOptions.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/DefineOptions.cmake b/DefineOptions.cmake
index 59e8fb9b..85a30376 100644
--- a/DefineOptions.cmake
+++ b/DefineOptions.cmake
@@ -21,7 +21,8 @@ option(WITH_NACL "Build with libnacl (curve25519)" ON)
option(WITH_SYMBOL_VERSIONING "Build with symbol versioning" ON)
option(WITH_ABI_BREAK "Allow ABI break" OFF)
option(WITH_GEX "Enable DH Group exchange mechanisms" ON)
-option(FUZZ_TESTING "Build with fuzzer for the server" OFF)
+option(WITH_INSECURE_NONE "Enable insecure none cipher and MAC algorithms (not suitable for production!)" OFF)
+option(FUZZ_TESTING "Build with fuzzer for the server and client (automatically enables none cipher!)" OFF)
option(PICKY_DEVELOPER "Build with picky developer flags" OFF)
if (WITH_ZLIB)
@@ -54,3 +55,7 @@ endif (NOT GLOBAL_BIND_CONFIG)
if (NOT GLOBAL_CLIENT_CONFIG)
set(GLOBAL_CLIENT_CONFIG "/etc/ssh/ssh_config")
endif (NOT GLOBAL_CLIENT_CONFIG)
+
+if (FUZZ_TESTING)
+ set(WITH_INSECURE_NONE ON)
+endif (FUZZ_TESTING)