cmCurl.h 643 B

123456789101112131415161718
  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 <cm/string_view>
  8. #include <cm3p/curl/curl.h>
  9. cm::optional<int> cmCurlParseTLSVersion(cm::string_view tls_version);
  10. std::string cmCurlSetCAInfo(::CURL* curl, const std::string& cafile = {});
  11. std::string cmCurlSetNETRCOption(::CURL* curl, const std::string& netrc_level,
  12. const std::string& netrc_file);
  13. std::string cmCurlFixFileURL(std::string url);