• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15################################################################################
16
17FROM gcr.io/oss-fuzz-base/base-builder
18RUN apt-get update && apt install -y libtalloc-dev libkqueue-dev
19
20# OpenSSL 1.1
21ARG OPENSSL_VERSION=1.1.1g
22ARG OPENSSL_HASH=ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46
23RUN set -ex \
24    && curl -s -O https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz \
25    && echo "${OPENSSL_HASH}  openssl-${OPENSSL_VERSION}.tar.gz" | sha256sum -c \
26    && tar -xzf openssl-${OPENSSL_VERSION}.tar.gz \
27    && cd openssl-${OPENSSL_VERSION} \
28    && ./Configure linux-x86_64 no-shared --static "$CFLAGS" \
29    && make build_generated \
30    && make libcrypto.a \
31    && make install
32ENV OPENSSL_ROOT_DIR=/usr/local/openssl-${OPENSSL_VERSION}
33
34RUN git clone --depth 1 https://github.com/FreeRADIUS/freeradius-server.git
35COPY build.sh $SRC
36COPY patch.diff $SRC
37WORKDIR $SRC/freeradius-server
38