From 18c00b5948fb0a90e1fce3b30ce01b74a6ae8b6c Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 25 Jun 2020 20:33:45 +0200 Subject: [PATCH] make timeout configurable --- passphrase_cache.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passphrase_cache.hh b/passphrase_cache.hh index 67749f8..9ab32b6 100644 --- a/passphrase_cache.hh +++ b/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) { }