Browse Source

add operator=

synchronous
Volker Birk 5 years ago
parent
commit
9e73643b68
  1. 1
      passphrase_cache.hh
  2. 2
      test/test_passphrase_cache.cc

1
passphrase_cache.hh

@ -35,6 +35,7 @@ namespace pEp {
~PassphraseCache() { }
PassphraseCache(const PassphraseCache& second) : _cache(second._cache),
_max_size(second._max_size), _timeout(second._timeout) { }
PassphraseCache operator=(const PassphraseCache& second) { return second; }
// adding a passphrase to the cache, which will timeout

2
test/test_passphrase_cache.cc

@ -59,6 +59,8 @@ int main()
status = cache.api(api_test2, session, 23, str, bytes, sl);
assert(status == PEP_STATUS_OK);
pEp::PassphraseCache _cache = cache;
::release(session);
return 0;
}

Loading…
Cancel
Save