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:
parent
ec24f910d8
commit
ef848cdfc7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user