Skip to content

Commit

Permalink
Fix compile issue with NO_WOLFSSL_DIR
Browse files Browse the repository at this point in the history
`test_wolfSSL_CTX_load_system_CA_certs()` would try to use DIR functions
when `NO_WOLFSSL_DIR` was used.
  • Loading branch information
LinuxJedi committed Dec 16, 2024
1 parent e3876fc commit 61cb5b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61cb5b4

Please sign in to comment.