mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Support testing against arbitary libcrytpo vers.
Add tests against various LibreSSL and OpenSSL versions.
This commit is contained in:
parent
b16082aa11
commit
095b0307a7
8
.github/configs
vendored
8
.github/configs
vendored
@ -44,11 +44,11 @@ case "$config" in
|
|||||||
CONFIGFLAGS="--with-pam"
|
CONFIGFLAGS="--with-pam"
|
||||||
SSHD_CONFOPTS="UsePam yes"
|
SSHD_CONFOPTS="UsePam yes"
|
||||||
;;
|
;;
|
||||||
libressl-head)
|
libressl-*)
|
||||||
LIBCRYPTOFLAGS="--with-ssl-dir=/opt/libressl/head --with-rpath=-Wl,-rpath,"
|
LIBCRYPTOFLAGS="--with-ssl-dir=/opt/libressl --with-rpath=-Wl,-rpath,"
|
||||||
;;
|
;;
|
||||||
openssl-head)
|
openssl-*)
|
||||||
LIBCRYPTOFLAGS="--with-ssl-dir=/opt/openssl/head --with-rpath=-Wl,-rpath,"
|
LIBCRYPTOFLAGS="--with-ssl-dir=/opt/openssl --with-rpath=-Wl,-rpath,"
|
||||||
;;
|
;;
|
||||||
selinux)
|
selinux)
|
||||||
CONFIGFLAGS="--with-selinux"
|
CONFIGFLAGS="--with-selinux"
|
||||||
|
26
.github/setup_ci.sh
vendored
26
.github/setup_ci.sh
vendored
@ -47,11 +47,19 @@ for TARGET in $TARGETS; do
|
|||||||
hardenedmalloc)
|
hardenedmalloc)
|
||||||
INSTALL_HARDENED_MALLOC=yes
|
INSTALL_HARDENED_MALLOC=yes
|
||||||
;;
|
;;
|
||||||
openssl-head)
|
openssl-*)
|
||||||
INSTALL_OPENSSL_HEAD=yes
|
INSTALL_OPENSSL=$(echo ${TARGET} | cut -f2 -d-)
|
||||||
|
case ${INSTALL_OPENSSL} in
|
||||||
|
1.*) INSTALL_OPENSSL="OpenSSL_$(echo ${INSTALL_OPENSSL} | tr . _)" ;;
|
||||||
|
3.*) INSTALL_OPENSSL="openssl-${INSTALL_OPENSSL}" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
libressl-head)
|
libressl-*)
|
||||||
INSTALL_LIBRESSL_HEAD=yes
|
INSTALL_LIBRESSL=$(echo ${TARGET} | cut -f2 -d-)
|
||||||
|
case ${INSTALL_LIBRESSL} in
|
||||||
|
master) ;;
|
||||||
|
*) INSTALL_LIBRESSL="v$(echo ${TARGET} | cut -f2 -d-)" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
valgrind*)
|
valgrind*)
|
||||||
PACKAGES="$PACKAGES valgrind"
|
PACKAGES="$PACKAGES valgrind"
|
||||||
@ -80,7 +88,7 @@ if [ "${INSTALL_HARDENED_MALLOC}" = "yes" ]; then
|
|||||||
make -j2 && sudo cp libhardened_malloc.so /usr/lib/)
|
make -j2 && sudo cp libhardened_malloc.so /usr/lib/)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${INSTALL_OPENSSL_HEAD}" = "yes" ];then
|
if [ ! -z "${INSTALL_OPENSSL}" ]; then
|
||||||
(cd ${HOME} &&
|
(cd ${HOME} &&
|
||||||
git clone https://github.com/openssl/openssl.git &&
|
git clone https://github.com/openssl/openssl.git &&
|
||||||
cd ${HOME}/openssl &&
|
cd ${HOME}/openssl &&
|
||||||
@ -88,10 +96,12 @@ if [ "${INSTALL_OPENSSL_HEAD}" = "yes" ];then
|
|||||||
make -j2 && sudo make install_sw)
|
make -j2 && sudo make install_sw)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${INSTALL_LIBRESSL_HEAD}" = "yes" ];then
|
if [ ! -z "${INSTALL_LIBRESSL}" ]; then
|
||||||
(mkdir -p ${HOME}/libressl && cd ${HOME}/libressl &&
|
(mkdir -p ${HOME}/libressl && cd ${HOME}/libressl &&
|
||||||
git clone https://github.com/libressl-portable/portable.git &&
|
git clone https://github.com/libressl-portable/portable.git &&
|
||||||
cd ${HOME}/libressl/portable && sh update.sh && sh autogen.sh &&
|
cd ${HOME}/libressl/portable &&
|
||||||
|
git checkout ${INSTALL_LIBRESSL} &&
|
||||||
|
sh update.sh && sh autogen.sh &&
|
||||||
./configure --prefix=/opt/libressl/head &&
|
./configure --prefix=/opt/libressl/head &&
|
||||||
make -j2 && sudo make install_sw)
|
make -j2 && sudo make install)
|
||||||
fi
|
fi
|
||||||
|
14
.github/workflows/c-cpp.yml
vendored
14
.github/workflows/c-cpp.yml
vendored
@ -26,8 +26,18 @@ jobs:
|
|||||||
- { os: ubuntu-20.04, configs: pam }
|
- { os: ubuntu-20.04, configs: pam }
|
||||||
- { os: ubuntu-20.04, configs: kitchensink }
|
- { os: ubuntu-20.04, configs: kitchensink }
|
||||||
- { os: ubuntu-20.04, configs: hardenedmalloc }
|
- { os: ubuntu-20.04, configs: hardenedmalloc }
|
||||||
- { os: ubuntu-20.04, configs: libressl-head }
|
- { os: ubuntu-20.04, configs: libressl-master }
|
||||||
- { os: ubuntu-20.04, configs: openssl-head }
|
- { os: ubuntu-20.04, configs: libressl-2.2.9 }
|
||||||
|
- { os: ubuntu-20.04, configs: libressl-2.8.3 }
|
||||||
|
- { os: ubuntu-20.04, configs: libressl-3.0.2 }
|
||||||
|
- { os: ubuntu-20.04, configs: libressl-3.2.5 }
|
||||||
|
- { os: ubuntu-20.04, configs: openssl-master }
|
||||||
|
- { os: ubuntu-20.04, configs: openssl-1.0.1 }
|
||||||
|
- { os: ubuntu-20.04, configs: openssl-1.0.1u }
|
||||||
|
- { os: ubuntu-20.04, configs: openssl-1.0.2u }
|
||||||
|
- { os: ubuntu-20.04, configs: openssl-1.1.0g }
|
||||||
|
- { os: ubuntu-20.04, configs: openssl-1.1.1 }
|
||||||
|
- { os: ubuntu-20.04, configs: openssl-1.1.1k }
|
||||||
- { os: ubuntu-18.04, configs: pam }
|
- { os: ubuntu-18.04, configs: pam }
|
||||||
- { os: ubuntu-18.04, configs: kerberos5 }
|
- { os: ubuntu-18.04, configs: kerberos5 }
|
||||||
- { os: ubuntu-18.04, configs: libedit }
|
- { os: ubuntu-18.04, configs: libedit }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user