提交 fab8fde3 编写于 作者: R Richard Levitte

test/evp_extra_test.c: Add OPENSSL_NO_CMAC around CMAC test

Reviewed-by: NMatt Caswell <matt@openssl.org>
Reviewed-by: NTomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11833)
上级 90ad284f
...@@ -1179,6 +1179,7 @@ static int test_EVP_PKEY_check(int i) ...@@ -1179,6 +1179,7 @@ static int test_EVP_PKEY_check(int i)
return ret; return ret;
} }
#ifndef OPENSSL_NO_CMAC
static int test_CMAC_keygen(void) static int test_CMAC_keygen(void)
{ {
/* /*
...@@ -1199,6 +1200,7 @@ static int test_CMAC_keygen(void) ...@@ -1199,6 +1200,7 @@ static int test_CMAC_keygen(void)
EVP_PKEY_CTX_free(kctx); EVP_PKEY_CTX_free(kctx);
return ret; return ret;
} }
#endif
static int test_HKDF(void) static int test_HKDF(void)
{ {
...@@ -1651,7 +1653,9 @@ int setup_tests(void) ...@@ -1651,7 +1653,9 @@ int setup_tests(void)
if (!TEST_int_eq(EVP_PKEY_meth_add0(custom_pmeth), 1)) if (!TEST_int_eq(EVP_PKEY_meth_add0(custom_pmeth), 1))
return 0; return 0;
ADD_ALL_TESTS(test_EVP_PKEY_check, OSSL_NELEM(keycheckdata)); ADD_ALL_TESTS(test_EVP_PKEY_check, OSSL_NELEM(keycheckdata));
#ifndef OPENSSL_NO_CMAC
ADD_TEST(test_CMAC_keygen); ADD_TEST(test_CMAC_keygen);
#endif
ADD_TEST(test_HKDF); ADD_TEST(test_HKDF);
#ifndef OPENSSL_NO_EC #ifndef OPENSSL_NO_EC
ADD_TEST(test_X509_PUBKEY_inplace); ADD_TEST(test_X509_PUBKEY_inplace);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册