Skip to content

Commit d6985a6

Browse files
committed
AES-GCM guard.
1 parent 2616fe3 commit d6985a6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/api.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,7 @@ static int test_wolfSSL_CTX_set_cipher_list_bytes(void)
20552055
#if defined(OPENSSL_EXTRA) && defined(WOLFSSL_TLS13) && \
20562056
!defined(WOLFSSL_NO_TLS12) && \
20572057
(!defined(NO_WOLFSSL_CLIENT) || !defined(NO_WOLFSSL_SERVER)) && \
2058+
defined(HAVE_AESGCM) && \
20582059
((!defined(NO_RSA) && defined(HAVE_ECC)) || !defined(NO_ERROR_STRINGS))
20592060
/* Helper function to check if TLS 1.3 suites exist in the suites list */
20602061
static int suites_has_tls13(const byte* suites, word16 suiteSz)
@@ -2088,7 +2089,7 @@ static int test_wolfSSL_set_cipher_list_tls12_keeps_tls13(void)
20882089
#if defined(OPENSSL_EXTRA) && defined(WOLFSSL_TLS13) && \
20892090
!defined(WOLFSSL_NO_TLS12) && \
20902091
(!defined(NO_WOLFSSL_CLIENT) || !defined(NO_WOLFSSL_SERVER)) && \
2091-
defined(HAVE_ECC) && !defined(NO_RSA)
2092+
defined(HAVE_AESGCM) && defined(HAVE_ECC) && !defined(NO_RSA)
20922093
WOLFSSL_CTX* ctx = NULL;
20932094
WOLFSSL* ssl = NULL;
20942095

@@ -2123,7 +2124,7 @@ static int test_wolfSSL_set_cipher_list_tls13_keeps_tls12(void)
21232124
#if defined(OPENSSL_EXTRA) && defined(WOLFSSL_TLS13) && \
21242125
!defined(WOLFSSL_NO_TLS12) && \
21252126
(!defined(NO_WOLFSSL_CLIENT) || !defined(NO_WOLFSSL_SERVER)) && \
2126-
!defined(NO_ERROR_STRINGS)
2127+
defined(HAVE_AESGCM) && !defined(NO_ERROR_STRINGS)
21272128
WOLFSSL_CTX* ctx = NULL;
21282129
WOLFSSL* ssl = NULL;
21292130

@@ -2158,7 +2159,7 @@ static int test_wolfSSL_set_cipher_list_tls12_with_version(void)
21582159
#if defined(OPENSSL_EXTRA) && defined(WOLFSSL_TLS13) && \
21592160
!defined(WOLFSSL_NO_TLS12) && \
21602161
(!defined(NO_WOLFSSL_CLIENT) || !defined(NO_WOLFSSL_SERVER)) && \
2161-
defined(HAVE_ECC) && !defined(NO_RSA)
2162+
defined(HAVE_AESGCM) && defined(HAVE_ECC) && !defined(NO_RSA)
21622163
WOLFSSL_CTX* ctx = NULL;
21632164
WOLFSSL* ssl = NULL;
21642165

@@ -2198,7 +2199,7 @@ static int test_wolfSSL_set_cipher_list_tls13_with_version(void)
21982199
#if defined(OPENSSL_EXTRA) && defined(WOLFSSL_TLS13) && \
21992200
!defined(WOLFSSL_NO_TLS12) && \
22002201
(!defined(NO_WOLFSSL_CLIENT) || !defined(NO_WOLFSSL_SERVER)) && \
2201-
!defined(NO_ERROR_STRINGS)
2202+
defined(HAVE_AESGCM) && !defined(NO_ERROR_STRINGS)
22022203
WOLFSSL_CTX* ctx = NULL;
22032204
WOLFSSL* ssl = NULL;
22042205

0 commit comments

Comments
 (0)