updated build system
This commit is contained in:
5
support/3rd_party/src/utils/file.cpp
vendored
5
support/3rd_party/src/utils/file.cpp
vendored
@ -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()) {
|
||||
|
Reference in New Issue
Block a user