]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix no-cmac
authorMatt Caswell <matt@openssl.org>
Fri, 22 Oct 2021 15:09:44 +0000 (16:09 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 25 Oct 2021 10:11:31 +0000 (11:11 +0100)
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)

test/evp_extra_test.c

index 74b7e0bcb8b26a190b0cc2deb7d054bc4a2d0d5b..e4a0b180d7be3936fd4a893f12c9d7873484c67f 100644 (file)
@@ -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;