From: Tobias Brunner Date: Wed, 28 Sep 2022 15:17:56 +0000 (+0200) Subject: github: Prefer third-party crypto lib's implementations over ours X-Git-Tag: 5.9.8~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=895597817abe6672a437dd731d215fa0f6348bc0;p=thirdparty%2Fstrongswan.git github: Prefer third-party crypto lib's implementations over ours If e.g. the hmac plugin is loaded before the third-party crypto lib plugin, we might not use the latter's HMAC implementation in some cases (e.g. in the libtls tests). --- diff --git a/scripts/test.sh b/scripts/test.sh index aec76f5518..41c0d1c3b0 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -152,7 +152,7 @@ default) ;; openssl*) CONFIG="--disable-defaults --enable-pki --enable-openssl --enable-pem" - export TESTS_PLUGINS="test-vectors pem openssl!" + export TESTS_PLUGINS="test-vectors openssl! pem" DEPS="libssl-dev" if test "$TEST" = "openssl-3"; then DEPS="" @@ -161,7 +161,7 @@ openssl*) ;; gcrypt) CONFIG="--disable-defaults --enable-pki --enable-gcrypt --enable-random --enable-pem --enable-pkcs1 --enable-pkcs8 --enable-gcm --enable-hmac --enable-kdf -enable-curve25519 --enable-x509 --enable-constraints" - export TESTS_PLUGINS="test-vectors random pem pkcs1 pkcs8 gcm hmac kdf curve25519 x509 constraints gcrypt!" + export TESTS_PLUGINS="test-vectors gcrypt! random pem pkcs1 pkcs8 gcm hmac kdf curve25519 x509 constraints" if [ "$ID" = "ubuntu" -a "$VERSION_ID" = "20.04" ]; then DEPS="libgcrypt20-dev" else @@ -170,7 +170,7 @@ gcrypt) ;; botan) CONFIG="--disable-defaults --enable-pki --enable-botan --enable-pem --enable-hmac --enable-x509 --enable-constraints" - export TESTS_PLUGINS="test-vectors pem hmac x509 constraints botan!" + export TESTS_PLUGINS="test-vectors botan! pem hmac x509 constraints" DEPS="" if test "$1" = "build-deps"; then build_botan @@ -178,7 +178,7 @@ botan) ;; wolfssl) CONFIG="--disable-defaults --enable-pki --enable-wolfssl --enable-pem --enable-pkcs1 --enable-pkcs8 --enable-x509 --enable-constraints" - export TESTS_PLUGINS="test-vectors pem pkcs1 pkcs8 x509 constraints wolfssl!" + export TESTS_PLUGINS="test-vectors wolfssl! pem pkcs1 pkcs8 x509 constraints" # build with custom options to enable all the features the plugin supports DEPS="" if test "$1" = "build-deps"; then