mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 20:00:51 -05:00
1e1129c6fe
In commit f2596dfa0e (macOS: Work around bug in system curl 8.{3,4,5}
LibreSSL backend, 2024-07-16, v3.30.1~2^2) we tried to prefer
`secure-transport` on problematic versions of curl. However, the
`curl_global_sslset` setting must be applied before every
`curl_global_init` call, not just the first one. Otherwise a
second (or subsequent) download won't apply the work-around.
23 lines
788 B
C++
23 lines
788 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <string>
|
|
|
|
#include <cm/optional>
|
|
#include <cm/string_view>
|
|
|
|
#include <cm3p/curl/curl.h>
|
|
|
|
cm::optional<int> cmCurlParseTLSVersion(cm::string_view tls_version);
|
|
cm::optional<std::string> cmCurlPrintTLSVersion(int curl_tls_version);
|
|
std::string cmCurlSetCAInfo(::CURL* curl, const std::string& cafile = {});
|
|
std::string cmCurlSetNETRCOption(::CURL* curl, const std::string& netrc_level,
|
|
const std::string& netrc_file);
|
|
std::string cmCurlFixFileURL(std::string url);
|
|
|
|
::CURLcode cm_curl_global_init(long flags);
|
|
::CURL* cm_curl_easy_init();
|