From: Andreas Steffen Date: Mon, 22 Aug 2022 12:33:00 +0000 (+0200) Subject: libtls: unit tests with crypto libs need additional plugins X-Git-Tag: 5.9.8dr1~2^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a15f55beb2d41f9a0459d3c36ccb0b542cc215;p=thirdparty%2Fstrongswan.git libtls: unit tests with crypto libs need additional plugins 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. --- diff --git a/scripts/test.sh b/scripts/test.sh index 33661a22c8..36583be873 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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