mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-12 23:43:59 +03:00
cmake: Add default CA path /var/ssl/certs on AIX
Extend commit 0abd3e538e (cmake: Use a default CA path when not using
system curl, 2015-01-22, v3.2.0-rc1~66^2) to cover AIX.
This commit is contained in:
1 parent
53f3e5da1e
commit
5a06872f1e
1 file changed
+9
@@ -152,6 +152,15 @@ std::string cmCurlSetCAInfo(::CURL* curl, const std::string& cafile)
|
||||
check_curl_result(res, "Unable to set TLS/SSL Verify CAPATH: ");
|
||||
}
|
||||
# undef CMAKE_CAPATH_COMMON
|
||||
# ifdef _AIX
|
||||
# define CMAKE_CAPATH_AIX "/var/ssl/certs"
|
||||
if (cmSystemTools::FileIsDirectory(CMAKE_CAPATH_AIX)) {
|
||||
::CURLcode res =
|
||||
::curl_easy_setopt(curl, CURLOPT_CAPATH, CMAKE_CAPATH_AIX);
|
||||
check_curl_result(res, "Unable to set TLS/SSL Verify CAPATH: ");
|
||||
}
|
||||
# undef CMAKE_CAPATH_AIX
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
return e;
|
||||
|
||||
Reference in new issue
Block a user