aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/libressl
diff options
context:
space:
mode:
authorGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2019-03-01 11:26:43 -0800
committerGravatar GitHub <noreply@github.com>2019-03-01 11:26:43 -0800
commit098760e6dfe1fc1d8d368b499be3d9b6c748bb07 (patch)
treefe5c42490c9f692af9151ab01596225ed12725ae /projects/libressl
parent1b6f3555f52fbaa16994543b78349bf30c328d4e (diff)
Revert addition of libressl (#2198)
* Revert "[libressl] Speculative build fix (#2197)" This reverts commit 1b6f3555f52fbaa16994543b78349bf30c328d4e. * Revert "[libressl] New project (#2075)" This reverts commit 3bc10fd753d33f2562911dc470a43b4637ffd2e4.
Diffstat (limited to 'projects/libressl')
-rw-r--r--projects/libressl/Dockerfile24
-rw-r--r--projects/libressl/bignum.options2
-rwxr-xr-xprojects/libressl/build.sh60
-rw-r--r--projects/libressl/project.yaml10
4 files changed, 0 insertions, 96 deletions
diff --git a/projects/libressl/Dockerfile b/projects/libressl/Dockerfile
deleted file mode 100644
index 2c3b0319..00000000
--- a/projects/libressl/Dockerfile
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2018 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-################################################################################
-
-FROM gcr.io/oss-fuzz-base/base-builder
-MAINTAINER ab@pompel.me
-RUN apt-get update && apt-get install -y make cmake
-RUN git clone --depth 1 https://github.com/libressl-portable/portable.git libressl
-RUN git clone --depth 1 https://github.com/libressl-portable/fuzz.git libressl.fuzzers
-WORKDIR libressl
-RUN ./update.sh
-COPY build.sh *.options $SRC/
diff --git a/projects/libressl/bignum.options b/projects/libressl/bignum.options
deleted file mode 100644
index 60bd9b0b..00000000
--- a/projects/libressl/bignum.options
+++ /dev/null
@@ -1,2 +0,0 @@
-[libfuzzer]
-max_len = 2048
diff --git a/projects/libressl/build.sh b/projects/libressl/build.sh
deleted file mode 100755
index e19c6d58..00000000
--- a/projects/libressl/build.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash -eux
-#
-# Copyright 2018 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-################################################################################
-mkdir -p $WORK/libressl
-cd $WORK/libressl
-
-CMAKE_DEFINES=""
-if [[ $CFLAGS = *sanitize=memory* ]]
-then
- CMAKE_DEFINES+=" -DOPENSSL_NO_ASM=1"
-fi
-
-cmake -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
- -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
- $CMAKE_DEFINES $SRC/libressl/
-make -j$(nproc)
-
-LIBRESSL_FUZZERS=$SRC/libressl.fuzzers
-fuzzerFiles=$(find $LIBRESSL_FUZZERS -name "*.c" | egrep -v 'driver.c|test-corpus.c')
-
-find . -name "*.a"
-
-$CC -c $CFLAGS \
- -o $WORK/driver.o \
- $LIBRESSL_FUZZERS/driver.c \
- -I $SRC/libressl/include -I $SRC/libressl
-
-for F in $fuzzerFiles; do
- fuzzerName=$(basename $F .c)
- echo "Building fuzzer $fuzzerName"
- $CC -c $CFLAGS \
- -o $WORK/${fuzzerName}.o \
- $F -I $SRC/libressl/include -I $SRC/libressl
-
- $CXX $CXXFLAGS \
- -o $OUT/${fuzzerName} -fsanitize-recover=address \
- $WORK/driver.o $WORK/${fuzzerName}.o ./ssl/libssl.a ./crypto/libcrypto.a ./tls/libtls.a -lFuzzingEngine
-
- if [ -d "$LIBRESSL_FUZZERS/corpora/${fuzzerName}/" ]; then
- zip -j $OUT/${fuzzerName}_seed_corpus.zip $LIBRESSL_FUZZERS/corpora/${fuzzerName}/*
- fi
-done
-
-cp $SRC/*.options $OUT/
-cp $LIBRESSL_FUZZERS/oids.txt $OUT/asn1.dict
-cp $LIBRESSL_FUZZERS/oids.txt $OUT/x509.dict
diff --git a/projects/libressl/project.yaml b/projects/libressl/project.yaml
deleted file mode 100644
index 468e803f..00000000
--- a/projects/libressl/project.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-homepage: "https://www.libressl.org/"
-primary_contact: "libressl-fuzzing@openbsd.org"
-auto_ccs:
- - "bcook@openbsd.org"
- - "miwaxe@gmail.com"
-sanitizers:
- - address
- - memory:
- experimental: True
- - undefined