2016-11-03 21:13:18 +00:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
RUN apk add --update \
|
|
|
|
git \
|
|
|
|
cmake \
|
2018-10-15 11:16:32 +01:00
|
|
|
patch \
|
2016-11-03 21:13:18 +00:00
|
|
|
perl \
|
|
|
|
python \
|
|
|
|
build-base \
|
|
|
|
go \
|
|
|
|
ninja \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
RUN git clone https://boringssl.googlesource.com/boringssl
|
2017-06-05 23:16:43 +01:00
|
|
|
|
2016-11-03 21:13:18 +00:00
|
|
|
RUN mkdir boringssl/build
|
|
|
|
|
|
|
|
# Draft 14
|
|
|
|
# ARG REVISION=88536c3
|
|
|
|
|
|
|
|
# Draft 15
|
|
|
|
# RUN cd boringssl && git fetch https://boringssl.googlesource.com/boringssl refs/changes/40/10840/18:draft15
|
|
|
|
# ARG REVISION=cae930d
|
|
|
|
|
|
|
|
# Draft "14.25" (sigalg renumbering)
|
|
|
|
# ARG REVISION=af56fbd
|
|
|
|
|
|
|
|
# Draft "14.25" w/ x25519 only
|
|
|
|
# ARG REVISION=c8b6b4f
|
|
|
|
|
|
|
|
# Draft "14.5" (sigalg, x25519, version ext)
|
|
|
|
# ARG REVISION=54afdab
|
|
|
|
|
|
|
|
# Draft 16
|
|
|
|
# ARG REVISION=89917a5
|
|
|
|
|
|
|
|
# Draft 18
|
2018-06-25 18:22:15 +01:00
|
|
|
# ARG REVISION=9b885c5
|
2017-08-31 15:03:22 +01:00
|
|
|
# Draft 18, but with "bssl server -loop -www" support and build fix
|
2018-06-25 18:22:15 +01:00
|
|
|
# ARG REVISION=40b24c8154
|
2016-11-03 21:13:18 +00:00
|
|
|
|
2017-11-14 15:43:14 +00:00
|
|
|
# Draft 21
|
2018-06-25 18:22:15 +01:00
|
|
|
# ARG REVISION=cd8470f
|
2017-11-14 15:43:14 +00:00
|
|
|
|
|
|
|
# Draft 22
|
2018-06-25 18:22:15 +01:00
|
|
|
# ARG REVISION=1530ef3e
|
|
|
|
|
|
|
|
# Draft 23
|
|
|
|
# ARG REVISION=cb15cfda29c0c60d8d74145b17c93b43a7667837
|
|
|
|
|
|
|
|
# Draft 28
|
|
|
|
# ARG REVISION=861f384d7bc59241a9df1634ae938d8e75be2d30
|
|
|
|
|
2018-09-16 08:36:45 +01:00
|
|
|
# TLS 1.3
|
|
|
|
ARG REVISION=d451453067cd665a5c38830fbbaac9e599234a5e
|
2017-11-14 15:43:14 +00:00
|
|
|
|
2018-10-15 11:16:32 +01:00
|
|
|
ADD sidh_$REVISION.patch /
|
|
|
|
|
2016-11-03 21:13:18 +00:00
|
|
|
RUN cd boringssl && git fetch
|
|
|
|
RUN cd boringssl && git checkout $REVISION
|
2018-10-15 11:16:32 +01:00
|
|
|
RUN cd boringssl && patch -p1 < /sidh_$REVISION.patch
|
|
|
|
RUN cd boringssl/build && cmake -DEXP_SIDH=1 -GNinja ..
|
2016-11-03 21:13:18 +00:00
|
|
|
RUN cd boringssl && ninja -C build
|
|
|
|
|
|
|
|
ADD httpreq.txt /httpreq.txt
|
|
|
|
ADD run.sh /run.sh
|
2017-08-31 15:03:22 +01:00
|
|
|
ADD server.sh rsa.pem ecdsa.pem /
|
2018-02-16 21:07:31 +00:00
|
|
|
ADD client_rsa.key client_rsa.crt client_ca.crt /
|
2016-11-03 21:13:18 +00:00
|
|
|
ENTRYPOINT ["/run.sh"]
|