diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-16 05:29:39 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | c0574f16ca7960a3301230ba36ba96148818e229 (patch) | |
tree | 120eb7a3346adb772c6df015dfd8257e418eb5dd /include/odhtdb/Database.hpp | |
parent | aa07b493ac6259e3ed0c42b60fca1f84ee09799f (diff) |
Add method to get user groups
Diffstat (limited to 'include/odhtdb/Database.hpp')
-rw-r--r-- | include/odhtdb/Database.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/odhtdb/Database.hpp b/include/odhtdb/Database.hpp index ca9369f..a68c601 100644 --- a/include/odhtdb/Database.hpp +++ b/include/odhtdb/Database.hpp @@ -189,6 +189,8 @@ namespace odhtdb // Returns nodes, public key and private key of encrypted user. // Throws DatabaseStorageWrongPassword if password for the stored user is wrong. std::vector<NodeUserKeyPair> getStoredUserNodeDataDecrypted(const std::string &username, const std::string &password); + + std::vector<OwnedMemory> getUserGroups(const Hash &nodeHash, const Signature::PublicKey &userPublicKey) const; private: void deserializeCreateRequest(const std::shared_ptr<dht::Value> &value, const Hash &hash, const std::shared_ptr<OwnedMemory> encryptionKey); void deserializeAddRequest(const std::shared_ptr<dht::Value> &value, const Hash &requestDataHash, const std::shared_ptr<Hash> &nodeHash, const std::shared_ptr<OwnedMemory> encryptionKey); |