summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-10-22 16:09:44 +0100
committerMatt Caswell <matt@openssl.org>2021-10-25 11:11:31 +0100
commit95fd012db5827d4e29f33213b0ba178a4628c40d (patch)
tree9b22b707b9a3cfb2b2ea14a2f96171e8d885e59c /test
parent0ad7578822b188447b1946e65a0ec4b5b07ead3f (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) (cherry picked from commit ef2fb64f9dfde1965cb0b8a5f8765c4f467c1604)
Diffstat (limited to 'test')
-rw-r--r--test/evp_extra_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c
index 74b7e0bcb8..e4a0b180d7 100644
--- a/test/evp_extra_test.c
+++ b/test/evp_extra_test.c
@@ -1786,6 +1786,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;