build_botan()
{
# same revision used in the build recipe of the testing environment
- BOTAN_REV=2.19.3
+ BOTAN_REV=3.1.1
BOTAN_DIR=$DEPS_BUILD_DIR/botan
if test -d "$BOTAN_DIR"; then
--disable-python-eggs-install"
# not enabled on the build server
CONFIG="$CONFIG --disable-af-alg"
+ # unable to build Botan on Ubuntu 20.04
+ if [ "$ID" = "ubuntu" -a "$VERSION_ID" = "20.04" ]; then
+ CONFIG="$CONFIG --disable-botan"
+ fi
if test "$TEST" != "coverage"; then
CONFIG="$CONFIG --disable-coverage"
else
libselinux1-dev libiptc-dev"
PYDEPS="tox"
if test "$1" = "build-deps"; then
- build_botan
+ if [ "$ID" = "ubuntu" -a "$VERSION_ID" != "20.04" ]; then
+ build_botan
+ fi
build_wolfssl
build_tss2
fi
pubkey->destroy(pubkey);
pubkey = lib->creds->create(lib->creds, CRED_PUBLIC_KEY, KEY_ED25519,
BUILD_BLOB_ASN1_DER, zero_pk, BUILD_END);
- ck_assert(pubkey != NULL);
- ck_assert(!pubkey->verify(pubkey, SIGN_ED25519, NULL, sig_tests[0].msg,
- sig));
- pubkey->destroy(pubkey);
+ if (pubkey)
+ {
+ ck_assert(!pubkey->verify(pubkey, SIGN_ED25519, NULL, sig_tests[0].msg,
+ sig));
+ pubkey->destroy(pubkey);
+ }
}
END_TEST