From: Matt Caswell Date: Fri, 22 Oct 2021 15:09:44 +0000 (+0100) Subject: Fix no-cmac X-Git-Tag: openssl-3.2.0-alpha1~3433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef2fb64f9dfde1965cb0b8a5f8765c4f467c1604;p=thirdparty%2Fopenssl.git Fix no-cmac Reviewed-by: Bernd Edlinger Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/16894) --- diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index b241387b5ea..2c604daae99 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -3988,6 +3988,12 @@ static int test_signatures_with_engine(int tst) size_t maclen = 0; int ret; +# ifdef OPENSSL_NO_CMAC + /* Skip CMAC tests in a no-cmac build */ + if (tst <= 1) + return 1; +# endif + if (!TEST_ptr(e = ENGINE_by_id(engine_id))) return 0;