From 61cb5b479f42fa28e299144a4ac0ec6b6669ead6 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Mon, 16 Dec 2024 17:23:49 +0000 Subject: [PATCH] Fix compile issue with NO_WOLFSSL_DIR `test_wolfSSL_CTX_load_system_CA_certs()` would try to use DIR functions when `NO_WOLFSSL_DIR` was used. --- tests/api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index a2ab5e4602..dfbf953396 100644 --- a/tests/api.c +++ b/tests/api.c @@ -2643,7 +2643,8 @@ static int test_wolfSSL_CTX_load_system_CA_certs(void) ret = -1; } if (ret == 0) { - #if defined(USE_WINDOWS_API) || defined(__APPLE__) + #if defined(USE_WINDOWS_API) || defined(__APPLE__) || \ + defined(NO_WOLFSSL_DIR) dirValid = 1; #else word32 numDirs;