CMake Nightly Date Stamp
[kiteware-cmake.git] / Source / cmCurl.h
blob8b8c88b895ef895039e72a511bd313c47b86485a
1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
3 #pragma once
5 #include "cmConfigure.h" // IWYU pragma: keep
7 #include <string>
9 #include <cm/optional>
10 #include <cm/string_view>
12 #include <cm3p/curl/curl.h>
14 cm::optional<int> cmCurlParseTLSVersion(cm::string_view tls_version);
15 cm::optional<std::string> cmCurlPrintTLSVersion(int curl_tls_version);
16 std::string cmCurlSetCAInfo(::CURL* curl, const std::string& cafile = {});
17 std::string cmCurlSetNETRCOption(::CURL* curl, const std::string& netrc_level,
18 const std::string& netrc_file);
19 std::string cmCurlFixFileURL(std::string url);