From a00abb0f88ee549148ab27939049d0591dcc88af Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Fri, 30 Dec 2022 13:10:24 -0500 Subject: [PATCH] Fix compilation issue when AESCCM is not enabled --- tests/api.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/api.c b/tests/api.c index 42f49cd45..5b95c6768 100644 --- a/tests/api.c +++ b/tests/api.c @@ -45365,17 +45365,29 @@ static int test_wolfSSL_EVP_aes_192_gcm(void) static int test_wolfSSL_EVP_aes_256_ccm(void) { - return TEST_RES_CHECK(wolfSSL_EVP_aes_256_ccm() != NULL); + int res = TEST_SKIPPED; +#ifdef HAVE_AESCCM + res = TEST_RES_CHECK(wolfSSL_EVP_aes_256_ccm() != NULL); +#endif + return res; } static int test_wolfSSL_EVP_aes_192_ccm(void) { - return TEST_RES_CHECK(wolfSSL_EVP_aes_192_ccm() != NULL); + int res = TEST_SKIPPED; +#ifdef HAVE_AESCCM + res = TEST_RES_CHECK(wolfSSL_EVP_aes_192_ccm() != NULL); +#endif + return res; } static int test_wolfSSL_EVP_aes_128_ccm(void) { - return TEST_RES_CHECK(wolfSSL_EVP_aes_256_ccm() != NULL); + int res = TEST_SKIPPED; +#ifdef HAVE_AESCCM + res = TEST_RES_CHECK(wolfSSL_EVP_aes_128_ccm() != NULL); +#endif + return res; } static int test_wolfSSL_EVP_ripemd160(void)