Skip to content

Commit 565c6aa

Browse files
committed
Fix test building
1 parent 060a2b3 commit 565c6aa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/api/test_tls_ext.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ static int certificate_authorities_server_cb(WOLFSSL *ssl, void *_arg) {
323323
}
324324
#endif
325325

326+
#if defined(HAVE_TRUSTED_CA) && !defined(NO_SHA) && \
327+
defined(HAVE_MANUAL_MEMIO_TESTS_DEPENDENCIES) && \
328+
!defined(NO_WOLFSSL_SERVER) && !defined(NO_WOLFSSL_CLIENT)
326329
/* Walk the TLSX list to find an extension by type. Avoids calling the
327330
* WOLFSSL_LOCAL TLSX_Find which is not available in shared library builds. */
328331
static TLSX* test_TLSX_find_ext(TLSX* list, TLSX_Type type)
@@ -334,6 +337,7 @@ static TLSX* test_TLSX_find_ext(TLSX* list, TLSX_Type type)
334337
}
335338
return NULL;
336339
}
340+
#endif
337341

338342
int test_TLSX_TCA_Find(void)
339343
{

0 commit comments

Comments
 (0)