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.
This commit is contained in:
Andrew Hutchings
2024-12-16 17:23:49 +00:00
parent e3876fcab7
commit 61cb5b479f

View File

@@ -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;