Skip to content

Commit f982295

Browse files
Update CMake logic to allow WOLFSSL_SYS_CA_CERTS without filesystem support on Windows/Mac.
1 parent d36bfab commit f982295

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,10 +2063,7 @@ add_option("WOLFSSL_SYS_CA_CERTS"
20632063
"yes" "yes;no")
20642064

20652065
if(WOLFSSL_SYS_CA_CERTS)
2066-
if(NOT WOLFSSL_FILESYSTEM)
2067-
message("Can't enable system CA certs without a filesystem.")
2068-
override_cache(WOLFSSL_SYS_CA_CERTS "no")
2069-
elseif(APPLE)
2066+
if(APPLE)
20702067
# Headers used for MacOS default system CA certs behavior. Only MacOS SDK will have this header
20712068
check_include_file("Security/SecTrustSettings.h" HAVE_SECURITY_SECTRUSTSETTINGS_H)
20722069
# Headers used for Apple native cert validation. All device SDKs should have these headers
@@ -2100,6 +2097,9 @@ if(WOLFSSL_SYS_CA_CERTS)
21002097
else()
21012098
message(FATAL_ERROR "Can't enable system CA certs without Apple Security.framework headers.")
21022099
endif()
2100+
elseif(NOT WIN32 AND NOT WOLFSSL_FILESYSTEM)
2101+
message("Can't enable system CA certs without a filesystem.")
2102+
override_cache(WOLFSSL_SYS_CA_CERTS "no")
21032103
endif()
21042104

21052105

0 commit comments

Comments
 (0)