@ -48,6 +48,7 @@ namespace pEp {
const char *PassphraseCache::add_stored(const std::string& passphrase)
{
std::lock_guard<std::mutex> lock(_shared_mtx);
_stored = passphrase;
return _stored.c_str();
}
@ -26,6 +26,7 @@ namespace pEp {
cache _cache;
std::string _stored;
std::mutex _mtx;
std::mutex _shared_mtx;
size_t _max_size;
duration _timeout;