From 85756ddd8c880d7972ff80fe1034dca1b2235c63 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 5 Jan 2025 20:06:09 -0600 Subject: [PATCH] updated build system --- support/include/utils/encryption.hpp | 10 ++++------ support/src/utils/encryption.cpp | 2 -- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/support/include/utils/encryption.hpp b/support/include/utils/encryption.hpp index 3d5502c0..fd440c0a 100644 --- a/support/include/utils/encryption.hpp +++ b/support/include/utils/encryption.hpp @@ -56,8 +56,8 @@ inline auto generate_key( template [[nodiscard]] inline auto decrypt_data(const std::array &key, const unsigned char *buffer, - std::size_t buffer_size, result_t &res) - -> bool { + std::size_t buffer_size, + result_t &res) -> bool { if (buffer_size > encryption_header_size) { const std::uint32_t size = boost::endian::native_to_big(static_cast(buffer_size)); @@ -76,8 +76,8 @@ template template [[nodiscard]] inline auto decrypt_data(const std::array &key, - const buffer_t &buf, result_t &res) - -> bool { + const buffer_t &buf, + result_t &res) -> bool { return decrypt_data( key, reinterpret_cast(buf.data()), buf.size(), res); @@ -185,7 +185,6 @@ encrypt_data(const std::array; @@ -200,7 +199,6 @@ read_encrypted_range(const http_range &range, const http_range &range, const utils::encryption::hash_256_t &key, reader_func_t reader_func, std::uint64_t total_size, unsigned char *data, std::size_t size, std::size_t &bytes_read) -> bool; -#endif // defined(PROJECT_ENABLE_CURL) #endif // defined(PROJECT_ENABLE_BOOST) template diff --git a/support/src/utils/encryption.cpp b/support/src/utils/encryption.cpp index 87de737c..70a9c83b 100644 --- a/support/src/utils/encryption.cpp +++ b/support/src/utils/encryption.cpp @@ -60,7 +60,6 @@ auto decrypt_file_name(std::string_view encryption_token, return utils::encryption::decrypt_data(encryption_token, buffer, file_name); } -#if defined(PROJECT_ENABLE_CURL) 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, @@ -158,7 +157,6 @@ auto read_encrypted_range(const http_range &range, return true; } -#endif // defined(PROJECT_ENABLE_CURL) } // namespace repertory::utils::encryption #endif // defined(PROJECT_ENABLE_LIBSODIUM) && defined (PROJECT_ENABLE_BOOST)