From f5dbd469c6853aac7429aed43aba1f5feb97c54c Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 7 May 2020 14:29:33 +0200 Subject: [PATCH] libssh: Enable support for none ciphers to unbreak build (#3770) * libssh: Enable support for none ciphers to unbreak build https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22074 * Add a new include for libssh_version.h https://gitlab.com/libssh/libssh-mirror/-/merge_requests/116 --- projects/libssh/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/libssh/build.sh b/projects/libssh/build.sh index a45c325e5..b0a3d150e 100644 --- a/projects/libssh/build.sh +++ b/projects/libssh/build.sh @@ -20,14 +20,14 @@ mkdir -p $BUILD pushd $BUILD cmake -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" \ -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ - -DBUILD_SHARED_LIBS=OFF $SRC/libssh + -DBUILD_SHARED_LIBS=OFF -DWITH_INSECURE_NONE=ON $SRC/libssh make "-j$(nproc)" fuzzers=$(find $SRC/libssh/tests/fuzz/ -name "*_fuzzer.cpp") for f in $fuzzers; do fuzzerName=$(basename $f .cpp) echo "Building fuzzer $fuzzerName" - $CXX $CXXFLAGS -std=c++11 -I$SRC/libssh/include/ \ + $CXX $CXXFLAGS -std=c++11 -I$SRC/libssh/include/ -I$BUILD/include/ \ "$f" -o "$OUT/$fuzzerName" \ $LIB_FUZZING_ENGINE ./src/libssh.a -Wl,-Bstatic -lcrypto -lz -Wl,-Bdynamic