updated build system

This commit is contained in:
2024-08-02 12:01:25 -05:00
parent 7c538b471d
commit fb26aa04b6
5 changed files with 12 additions and 21 deletions

View File

@ -271,8 +271,9 @@ auto read_json_file(std::string_view path, nlohmann::json &data) -> bool {
auto json_text = stream.str();
#if defined(PROJECT_ENABLE_LIBSODIUM)
if (password.has_value()) {
auto data = utils::encryption::decrypt_data(json_text, *password);
json_text = {data.begin(), data.end()};
auto decrypted_data =
utils::encryption::decrypt_data(json_text, *password);
json_text = {decrypted_data.begin(), decrypted_data.end()};
}
#endif // defined(PROJECT_ENABLE_LIBSODIUM)
if (not json_text.empty()) {