Skip to content

Commit

Permalink
Add team to shared folder fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-keeper committed Jan 10, 2025
1 parent 0ce0b44 commit 8c885ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keepercommander/commands/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,10 @@ def prepare_request(params, kwargs, curr_sf, users, teams, rec_uids, *,
if keys:
if keys.aes:
if params.forbid_rsa:
to.typedSharedFolderKey.encryptedKey = crypto.encrypt_aes_v2(sf_key, params.data_key)
to.typedSharedFolderKey.encryptedKey = crypto.encrypt_aes_v2(sf_key, keys.aes)
to.typedSharedFolderKey.encryptedKeyType = folder_pb2.encrypted_by_data_key_gcm
else:
to.typedSharedFolderKey.encryptedKey = crypto.encrypt_aes_v1(sf_key, params.data_key)
to.typedSharedFolderKey.encryptedKey = crypto.encrypt_aes_v1(sf_key, keys.aes)
to.typedSharedFolderKey.encryptedKeyType = folder_pb2.encrypted_by_data_key
elif params.forbid_rsa and keys.ec:
ec_key = crypto.load_ec_public_key(keys.ec)
Expand Down

0 comments on commit 8c885ca

Please sign in to comment.