summary refs log tree commit diff
path: root/src/CacheCryptoStructs.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-11-07 12:42:40 +0100
committerGitHub <noreply@github.com>2021-11-07 12:42:40 +0100
commit1bdf4ebd2102eafb2afcf50a0a18ec43d896056c (patch)
treee21a55f41b76b6048e0cc88dd689dd41c4de8a63 /src/CacheCryptoStructs.h
parentMerge pull request #790 from LorenDB/fixRRDialog (diff)
parentMove away from using an event loop to access secrets (diff)
downloadnheko-1bdf4ebd2102eafb2afcf50a0a18ec43d896056c.tar.xz
Merge pull request #791 from Nheko-Reborn/secret-storage-fixes
Move away from using an event loop to access secrets
Diffstat (limited to 'src/CacheCryptoStructs.h')
-rw-r--r--src/CacheCryptoStructs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CacheCryptoStructs.h b/src/CacheCryptoStructs.h

index b7461848..f56c8685 100644 --- a/src/CacheCryptoStructs.h +++ b/src/CacheCryptoStructs.h
@@ -141,6 +141,14 @@ struct VerificationStorage std::mutex verification_storage_mtx; }; +//! In memory cache of verification status +struct SecretsStorage +{ + //! secret name -> secret + std::map<std::string, std::string> secrets; + std::mutex mtx; +}; + // this will store the keys of the user with whom a encrypted room is shared with struct UserKeyCache {