diff options
author | Matt Caswell <matt@openssl.org> | 2021-10-22 16:09:44 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-10-25 11:08:29 +0100 |
commit | ef2fb64f9dfde1965cb0b8a5f8765c4f467c1604 (patch) | |
tree | cd24c9cf40baeb419fd4a6221a9fd9273ecb0d2f | |
parent | f99b34957f4173f68d6f19d0d9fac37d797b7e0c (diff) |
Fix no-cmac
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16894)
-rw-r--r-- | test/evp_extra_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index b241387b5e..2c604daae9 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; |