]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: SSL: add quictls build to scripts/build-ssl.sh
authorIlya Shipitsin <chipitsine@gmail.com>
Thu, 18 Nov 2021 13:27:56 +0000 (18:27 +0500)
committerWilly Tarreau <w@1wt.eu>
Sat, 20 Nov 2021 07:17:22 +0000 (08:17 +0100)
script/build-ssl.sh is used mostly in CI, let us introduce QUIC
OpenSSL fork support

scripts/build-ssl.sh

index e1d89a0ebaccd6c995559474303ed3e6a384608e..d143cec5586531a8ce568c883e366e7de933c1f7 100755 (executable)
@@ -86,6 +86,17 @@ download_boringssl () {
     fi
 }
 
+download_quictls () {
+    if [ ! -d "download-cache/quictls" ]; then
+        git clone --depth=1 https://github.com/quictls/openssl download-cache/quictls
+    else
+       (
+        cd download-cache/quictls
+        git pull
+       )
+    fi
+}
+
 if [ ! -z ${LIBRESSL_VERSION+x} ]; then
        download_libressl
        build_libressl
@@ -121,3 +132,15 @@ if [ ! -z ${BORINGSSL+x} ]; then
        )
 fi
 
+if [ ! -z ${QUICTLS+x} ]; then
+        (
+
+        download_quictls
+        cd download-cache/quictls
+
+        ./config shared --prefix="${HOME}/opt" --openssldir="${HOME}/opt" --libdir=lib -DPURIFY
+        make -j$(nproc) build_sw
+        make install_sw
+
+        )
+fi