mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-11 23:43:58 +03:00
cmake: Add default CA path /etc/opt/csw/ssl/certs on Solaris
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 Solaris with OpenCSW.
This commit is contained in:
1 parent
ec24f910d8
commit
ef848cdfc7
1 file changed
+9
@@ -160,6 +160,15 @@ std::string cmCurlSetCAInfo(::CURL* curl, std::string const& cafile)
|
||||
check_curl_result(res, "Unable to set TLS/SSL Verify CAPATH: ");
|
||||
}
|
||||
# undef CMAKE_CAPATH_AIX
|
||||
# endif
|
||||
# ifdef __sun
|
||||
# define CMAKE_CAPATH_SUNOS_CSW "/etc/opt/csw/ssl/certs"
|
||||
if (cmSystemTools::FileIsDirectory(CMAKE_CAPATH_SUNOS_CSW)) {
|
||||
::CURLcode res =
|
||||
::curl_easy_setopt(curl, CURLOPT_CAPATH, CMAKE_CAPATH_SUNOS_CSW);
|
||||
check_curl_result(res, "Unable to set TLS/SSL Verify CAPATH: ");
|
||||
}
|
||||
# undef CMAKE_CAPATH_SUNOS_CSW
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user