summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-26 17:18:23 (GMT)
committerBrad King <brad.king@kitware.com>2024-09-26 17:18:44 (GMT)
commit5a06872f1e53a41e8bcfcc1496821a18e05fe60e (patch)
treec4bcc092ad91635a79aa601cb166e3a7455b942b /Source
parent53f3e5da1e6bc15baedb1053976b677909564c6f (diff)
downloadCMake-5a06872f1e53a41e8bcfcc1496821a18e05fe60e.zip
CMake-5a06872f1e53a41e8bcfcc1496821a18e05fe60e.tar.gz
CMake-5a06872f1e53a41e8bcfcc1496821a18e05fe60e.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCurl.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmCurl.cxx b/Source/cmCurl.cxx
index 51b95c3..b9133ed 100644
--- a/Source/cmCurl.cxx
+++ b/Source/cmCurl.cxx
@@ -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;