]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Prefer third-party crypto lib's implementations over ours
authorTobias Brunner <tobias@strongswan.org>
Wed, 28 Sep 2022 15:17:56 +0000 (17:17 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 28 Sep 2022 15:17:56 +0000 (17:17 +0200)
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).

scripts/test.sh

index aec76f55181bdebfc28f611b0754f461b13498b6..41c0d1c3b0510c3f7f7714bf02a93cbe67c77833 100755 (executable)
@@ -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