Browse Source

make timeout configurable

synchronous
Volker Birk 5 years ago
parent
commit
18c00b5948
  1. 3
      passphrase_cache.hh

3
passphrase_cache.hh

@ -22,7 +22,8 @@ namespace pEp {
duration _timeout;
public:
PassphraseCache() : _timeout(std::chrono::minutes(10)) { }
PassphraseCache(duration timeout = std::chrono::minutes(10)) :
_timeout(timeout) { }
~PassphraseCache() { }
PassphraseCache(const PassphraseCache& second) :
_cache(second._cache), _timeout(second._timeout) { }

Loading…
Cancel
Save