cmCurl.h 620 B

1234567891011121314151617
  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
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <string>
  6. #include <cm/optional>
  7. #include <cm3p/curl/curl.h>
  8. cm::optional<int> cmCurlParseTLSVersion(std::string const& tls_version);
  9. std::string cmCurlSetCAInfo(::CURL* curl, const std::string& cafile = {});
  10. std::string cmCurlSetNETRCOption(::CURL* curl, const std::string& netrc_level,
  11. const std::string& netrc_file);
  12. std::string cmCurlFixFileURL(std::string url);