updated build system
This commit is contained in:
@ -190,10 +190,9 @@ auto s3_provider::decrypt_object_name(std::string &object_name) const
|
||||
-> api_error {
|
||||
auto parts = utils::string::split(object_name, '/', false);
|
||||
for (auto &part : parts) {
|
||||
auto err = utils::encryption::decrypt_file_name(
|
||||
get_config().get_s3_config().encryption_token, part);
|
||||
if (err != api_error::success) {
|
||||
return err;
|
||||
if (not utils::encryption::decrypt_file_name(
|
||||
get_config().get_s3_config().encryption_token, part)) {
|
||||
return api_error::decryption_error;
|
||||
}
|
||||
}
|
||||
|
||||
@ -313,10 +312,9 @@ auto s3_provider::get_directory_items_impl(
|
||||
std::string child_object_name;
|
||||
if (is_encrypted) {
|
||||
child_object_name = child_api_path;
|
||||
ret = utils::encryption::decrypt_file_path(cfg.encryption_token,
|
||||
child_api_path);
|
||||
if (ret != api_error::success) {
|
||||
return ret;
|
||||
if (not utils::encryption::decrypt_file_path(cfg.encryption_token,
|
||||
child_api_path)) {
|
||||
return api_error::decryption_error;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user