]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
libtls: unit tests with crypto libs need additional plugins
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 22 Aug 2022 12:33:00 +0000 (14:33 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 25 Aug 2022 08:51:05 +0000 (10:51 +0200)
In order for libtls to run with the gcrypt libraryi, additionally the
random, pem, gcm, hmac, kdf, x509, constraints, and the curve2519
plugins are needed.

The botan library additionally need the hmac (for HMAC_MD5), x509 and
constraints plugins.

The wolfssl library additionally need the pkcs1, pkcs8, x509 and constraints
plugins.

scripts/test.sh

index 33661a22c81c10343b43b8c313e53d7124918388..36583be873b86dd294d47eb21eb6f096147a9606 100755 (executable)
@@ -160,8 +160,8 @@ openssl*)
        fi
        ;;
 gcrypt)
-       CONFIG="--disable-defaults --enable-pki --enable-gcrypt --enable-pkcs1 --enable-pkcs8"
-       export TESTS_PLUGINS="test-vectors pkcs1 pkcs8 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!"
        if [ "$ID" = "ubuntu" -a "$VERSION_ID" = "20.04" ]; then
                DEPS="libgcrypt20-dev"
        else
@@ -169,16 +169,16 @@ gcrypt)
        fi
        ;;
 botan)
-       CONFIG="--disable-defaults --enable-pki --enable-botan --enable-pem"
-       export TESTS_PLUGINS="test-vectors pem 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!"
        DEPS=""
        if test "$1" = "build-deps"; then
                build_botan
        fi
        ;;
 wolfssl)
-       CONFIG="--disable-defaults --enable-pki --enable-wolfssl --enable-pem"
-       export TESTS_PLUGINS="test-vectors pem 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!"
        # build with custom options to enable all the features the plugin supports
        DEPS=""
        if test "$1" = "build-deps"; then