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).
This commit is contained in:
Tobias Brunner
2022-09-28 17:17:56 +02:00
parent b05a8927d9
commit 895597817a
+4 -4
View File
@@ -152,7 +152,7 @@ default)
;; ;;
openssl*) openssl*)
CONFIG="--disable-defaults --enable-pki --enable-openssl --enable-pem" 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" DEPS="libssl-dev"
if test "$TEST" = "openssl-3"; then if test "$TEST" = "openssl-3"; then
DEPS="" DEPS=""
@@ -161,7 +161,7 @@ openssl*)
;; ;;
gcrypt) 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" 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 if [ "$ID" = "ubuntu" -a "$VERSION_ID" = "20.04" ]; then
DEPS="libgcrypt20-dev" DEPS="libgcrypt20-dev"
else else
@@ -170,7 +170,7 @@ gcrypt)
;; ;;
botan) botan)
CONFIG="--disable-defaults --enable-pki --enable-botan --enable-pem --enable-hmac --enable-x509 --enable-constraints" 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="" DEPS=""
if test "$1" = "build-deps"; then if test "$1" = "build-deps"; then
build_botan build_botan
@@ -178,7 +178,7 @@ botan)
;; ;;
wolfssl) wolfssl)
CONFIG="--disable-defaults --enable-pki --enable-wolfssl --enable-pem --enable-pkcs1 --enable-pkcs8 --enable-x509 --enable-constraints" 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 # build with custom options to enable all the features the plugin supports
DEPS="" DEPS=""
if test "$1" = "build-deps"; then if test "$1" = "build-deps"; then