By default commands such as "ctest" would not look for certificates at all: . This changes CMake such that commands honor SSL_CERT_FILE and SSL_CERT_DIR as well as /etc/ssl/certs. --- cmake-3.13.1/Source/cmCurl.cxx 2019-09-10 17:27:36.926907260 +0200 +++ cmake-3.13.1/Source/cmCurl.cxx 2019-09-10 17:52:35.475903919 +0200 @@ -2,11 +2,8 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCurl.h" -#if !defined(CMAKE_USE_SYSTEM_CURL) && !defined(_WIN32) && \ - !defined(__APPLE__) && !defined(CURL_CA_BUNDLE) && !defined(CURL_CA_PATH) # define CMAKE_FIND_CAFILE # include "cmSystemTools.h" -#endif #include "cmStringAlgorithms.h" // curl versions before 7.21.5 did not provide this error code @@ -30,6 +27,19 @@ ::CURLcode res = ::curl_easy_setopt(curl, CURLOPT_CAINFO, cafile); check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: "); } + + /* Honor the usual environment variables. */ + else if (cmSystemTools::GetEnv("SSL_CERT_FILE", e)) { + ::CURLcode res = + ::curl_easy_setopt(curl, CURLOPT_CAINFO, e.c_str()); + check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: "); + } + else if (cmSystemTools::GetEnv("SSL_CERT_DIR", e)) { + ::CURLcode res = + ::curl_easy_setopt(curl, CURLOPT_CAPATH, e.c_str()); + check_curl_result(res, "Unable to set TLS/SSL Verify CAINFO: "); + } + #ifdef CMAKE_FIND_CAFILE # define CMAKE_CAFILE_FEDORA "/etc/pki/tls/certs/ca-bundle.crt" else if (cmSystemTools::FileExists(CMAKE_CAFILE_FEDORA, true)) { erlang.scm'>
path: root/gnu/packages/erlang.scm
AgeCommit message (Expand)Author
2018-08-16gnu: erlang: Update to 21.0.5....Tobias Geerinckx-Rice
2018-08-16gnu: Use ©....Tobias Geerinckx-Rice
2018-08-16gnu: erlang: Don't use unstable tarball....Tobias Geerinckx-Rice
2018-07-17gnu: erlang: Update to 21.0....Nils Gillmann
2018-06-12gnu: erlang: Patch occurrences of /bin/sh in the source....Christopher Baines
2018-06-12gnu: erlang: Delete the bootstrap phase....Christopher Baines
2018-02-19gnu: erlang: Use HTTPS home page....Tobias Geerinckx-Rice
2018-02-16gnu: erlang: Update phase style....Tobias Geerinckx-Rice
2018-02-16gnu: erlang: Update to 20.2.3....Tobias Geerinckx-Rice
2017-12-13gnu: Erlang: Update to 20.1.7 [fixes CVE-2017-1000385]....Leo Famulari
2017-12-04gnu: erlang: Update to 20.1....nee
2017-10-20gnu: Fix the hashes of mutated GitHub archives....Maxim Cournoyer
2017-09-04gnu: Put autoconf-related phases immediately after the 'unpack phase....Kei Kebreau
2017-07-31gnu: erlang: Update to 20.0....Peter Mikkelsen
2017-07-29gnu: erlang: Fix man-pages search path of 'erl -man'....Peter Mikkelsen
2017-05-06gnu: erlang: Update to 19.3....Pjotr Prins
2016-06-24gnu: Add erlang....Steve Sprang