diff options
author | Brad King <brad.king@kitware.com> | 2024-09-27 11:59:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-09-27 12:01:41 (GMT) |
commit | 5701ba7484a917c11e256e0a7a95ccad1ee1acbc (patch) | |
tree | 26e38aa8cea01735206904d20f13b46d64961afd /Source | |
parent | 590f1d28e0ba246e47262483000f70a6469742fc (diff) | |
parent | 5a06872f1e53a41e8bcfcc1496821a18e05fe60e (diff) | |
download | CMake-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.cxx | 9 |
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; |