From aebb29de069baaae65d8924eaed04f4c896ba49e Mon Sep 17 00:00:00 2001 From: Sergey Kolupaev Date: Wed, 15 Dec 2021 13:55:25 -0800 Subject: [PATCH] Record types: add typed record to shared folder --- Commander/Commands.cs | 2 +- KeeperSdk/vault/VaultOnlineFunctions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Commander/Commands.cs b/Commander/Commands.cs index ff12da3..a2d57f6 100644 --- a/Commander/Commands.cs +++ b/Commander/Commands.cs @@ -284,7 +284,7 @@ public NotConnectedCliContext(bool autologin) _auth = new Auth(ui, storage) { - Endpoint = {DeviceName = "Commander C#", ClientVersion = "c15.0.0"} + Endpoint = {DeviceName = "Commander C#", ClientVersion = "c16.0.0"} }; Commands.Add("login", new ParsableCommand diff --git a/KeeperSdk/vault/VaultOnlineFunctions.cs b/KeeperSdk/vault/VaultOnlineFunctions.cs index 5498f6f..ae30ea1 100644 --- a/KeeperSdk/vault/VaultOnlineFunctions.cs +++ b/KeeperSdk/vault/VaultOnlineFunctions.cs @@ -150,7 +150,7 @@ public static async Task AddRecordToFolder(this VaultOnline vault, recordAddProto.FolderUid = ByteString.CopyFrom(folderUid.Base64UrlDecode()); if (folderKey != null) { - recordAddProto.RecordKey = + recordAddProto.FolderKey = ByteString.CopyFrom(CryptoUtils.EncryptAesV2(record.RecordKey, folderKey)); } }