Browse Source

don't

synchronous
Volker Birk 5 years ago
parent
commit
ec67ea0a11
  1. 2
      passphrase_cache.cc
  2. 2
      passphrase_cache.hh

2
passphrase_cache.cc

@ -1,7 +1,7 @@
#include "passphrase_cache.hh" #include "passphrase_cache.hh"
namespace pEp { namespace pEp {
const char *PassphraseCache::add(std::string&& passphrase) const char *PassphraseCache::add(std::string passphrase)
{ {
std::lock_guard<std::mutex> lock(_mtx); std::lock_guard<std::mutex> lock(_mtx);

2
passphrase_cache.hh

@ -38,7 +38,7 @@ namespace pEp {
// adding a passphrase to the cache, which will timeout // adding a passphrase to the cache, which will timeout
const char *add(std::string&& passphrase); const char *add(std::string passphrase);
// for each passphrase call the callee until it returns true for a // for each passphrase call the callee until it returns true for a
// matching passphrase or no passphrases are left // matching passphrase or no passphrases are left

Loading…
Cancel
Save