|
|
@ -40,13 +40,10 @@ namespace pEp { |
|
|
|
}; |
|
|
|
|
|
|
|
PassphraseCache(int max_size=20, duration timeout = |
|
|
|
std::chrono::minutes(10)) : _max_size(max_size), |
|
|
|
_timeout(timeout), _which(_cache.end()) { } |
|
|
|
std::chrono::minutes(10)); |
|
|
|
~PassphraseCache() { } |
|
|
|
PassphraseCache(const PassphraseCache& second) : _cache(second._cache), |
|
|
|
_max_size(second._max_size), _timeout(second._timeout), |
|
|
|
_which(_cache.end()) { } |
|
|
|
PassphraseCache operator=(const PassphraseCache& second) { return second; } |
|
|
|
PassphraseCache(const PassphraseCache& second); |
|
|
|
PassphraseCache operator=(const PassphraseCache& second); |
|
|
|
|
|
|
|
// adding a passphrase to the cache, which will timeout
|
|
|
|
|
|
|
|