summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-27 11:59:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-09-27 12:01:41 (GMT)
commit5701ba7484a917c11e256e0a7a95ccad1ee1acbc (patch)
tree26e38aa8cea01735206904d20f13b46d64961afd /Source
parent590f1d28e0ba246e47262483000f70a6469742fc (diff)
parent5a06872f1e53a41e8bcfcc1496821a18e05fe60e (diff)
downloadCMake-5701ba7484a917c11e256e0a7a95ccad1ee1acbc.zip
CMake-5701ba7484a917c11e256e0a7a95ccad1ee1acbc.tar.gz
CMake-5701ba7484a917c11e256e0a7a95ccad1ee1acbc.tar.bz2
Merge topic 'curl-default-cainfo'
5a06872f1e cmake: Add default CA path /var/ssl/certs on AIX Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9854
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;