]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Github testing support for BoringSSL
authorDamien Miller <djm@mindrot.org>
Fri, 24 Mar 2023 04:02:52 +0000 (15:02 +1100)
committerDamien Miller <djm@mindrot.org>
Fri, 24 Mar 2023 04:39:48 +0000 (15:39 +1100)
.github/configs
.github/setup_ci.sh
.github/workflows/c-cpp.yml

index 8f21fc54a26845d2a19d747d21924317468f3e74..eb91732c43ae6c84de6d10908dee409e98aa50ee 100755 (executable)
@@ -139,6 +139,10 @@ case "$config" in
        CONFIGFLAGS="--with-pam"
        SSHD_CONFOPTS="UsePam yes"
        ;;
+    boringssl)
+       CONFIGFLAGS="--disable-pkcs11"
+       LIBCRYPTOFLAGS="--with-ssl-dir=/opt/boringssl --with-rpath=-Wl,-rpath,"
+       ;;
     libressl-*)
        LIBCRYPTOFLAGS="--with-ssl-dir=/opt/libressl --with-rpath=-Wl,-rpath,"
        ;;
index 691c70dd7ed61785a094b62b06a47aaf77bae90b..489114be8bbf38df146abd44f2dbf48bb49ad4a4 100755 (executable)
@@ -124,6 +124,10 @@ for TARGET in $TARGETS; do
         esac
         PACKAGES="${PACKAGES} putty-tools"
        ;;
+    boringssl)
+        INSTALL_BORINGSSL=1
+        PACKAGES="${PACKAGES} cmake ninja-build"
+       ;;
     valgrind*)
        PACKAGES="$PACKAGES valgrind"
        ;;
@@ -199,3 +203,12 @@ if [ ! -z "${INSTALL_LIBRESSL}" ]; then
          ./configure --prefix=/opt/libressl && make -j2 && sudo make install)
     fi
 fi
+
+if [ ! -z "${INSTALL_BORINGSSL}" ]; then
+    (cd ${HOME} && git clone https://boringssl.googlesource.com/boringssl &&
+     cd ${HOME}/boringssl && mkdir build && cd build &&
+     cmake -GNinja  -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. && ninja &&
+     mkdir -p /opt/boringssl/lib &&
+     cp ${HOME}/boringssl/build/crypto/libcrypto.a /opt/boringssl/lib &&
+     cp -r ${HOME}/boringssl/include /opt/boringssl)
+fi
index d299a32468d1f78e998504358ff9f8063c1ed7bb..fbd62f83a07f8465c1b30e7f55053e360b76aae9 100644 (file)
@@ -46,6 +46,7 @@ jobs:
           - { target: ubuntu-20.04, config: hardenedmalloc }
           - { target: ubuntu-20.04, config: tcmalloc }
           - { target: ubuntu-20.04, config: musl }
+          - { target: ubuntu-latest, config: boringssl }
           - { target: ubuntu-latest, config: libressl-master }
           - { target: ubuntu-latest, config: libressl-3.2.6 }
           - { target: ubuntu-latest, config: libressl-3.3.6 }