updated build system

This commit is contained in:
2024-08-20 09:16:49 -05:00
parent f8e9176538
commit 7d0af3fb04
7 changed files with 104 additions and 157 deletions

View File

@ -178,6 +178,18 @@ encrypt_data(const std::array<unsigned char,
reinterpret_cast<const unsigned char *>(buf.data()),
buf.size(), res);
}
#if defined(PROJECT_ENABLE_CURL)
using reader_func_t =
std::function<bool(data_buffer &cypher_text, std::uint64_t start_offset,
std::uint64_t end_offset)>;
[[nodiscard]] auto
read_encrypted_range(const http_range &range,
const utils::encryption::hash_256_t &key,
reader_func_t reader_func, std::uint64_t total_size,
data_buffer &data) -> bool;
#endif // defined(PROJECT_ENABLE_CURL)
#endif // defined(PROJECT_ENABLE_BOOST)
template <typename hash_t>