From f734f5037df17ffbf3c14bfafbba131de69385e9 Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Fri, 30 Dec 2022 13:11:26 -0500 Subject: [PATCH] Add similar trick to GCM routines so our code is more uniform --- tests/api.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 5b95c6768..a110de95b 100644 --- a/tests/api.c +++ b/tests/api.c @@ -45355,12 +45355,20 @@ static int test_wolfSSL_EVP_md4(void) static int test_wolfSSL_EVP_aes_256_gcm(void) { - return TEST_RES_CHECK(wolfSSL_EVP_aes_256_gcm() != NULL); + int res = TEST_SKIPPED; +#ifdef HAVE_AESGCM + res = TEST_RES_CHECK(wolfSSL_EVP_aes_256_gcm() != NULL); +#endif + return res; } static int test_wolfSSL_EVP_aes_192_gcm(void) { - return TEST_RES_CHECK(wolfSSL_EVP_aes_192_gcm() != NULL); + int res = TEST_SKIPPED; +#ifdef HAVE_AESGCM + res = TEST_RES_CHECK(wolfSSL_EVP_aes_192_gcm() != NULL); +#endif + return res; } static int test_wolfSSL_EVP_aes_256_ccm(void)