diff options
author | Pedro Alves <pgalves@gmail.com> | 2015-01-27 20:38:26 +0300 |
---|---|---|
committer | Kyle Manna <kyle@kylemanna.com> | 2017-01-09 03:48:12 +0300 |
commit | d398d367c1e2b6fe9534f42769cc6e05cd4ceafe (patch) | |
tree | 80837d3e2ae05568f7db2ff6f03ca4d44d9b1dc7 /src/keys | |
parent | 951fa968480a861718371e25d7ca3f8106821100 (diff) |
Allow a previously yubikey protected database to be saved without the yubikey challenge-response code.
Diffstat (limited to 'src/keys')
-rw-r--r-- | src/keys/CompositeKey.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keys/CompositeKey.cpp b/src/keys/CompositeKey.cpp index ed64b8ef4..d2334e3c2 100644 --- a/src/keys/CompositeKey.cpp +++ b/src/keys/CompositeKey.cpp @@ -43,7 +43,9 @@ CompositeKey::~CompositeKey() void CompositeKey::clear() { qDeleteAll(m_keys); + qDeleteAll(m_challengeResponseKeys); m_keys.clear(); + m_challengeResponseKeys.clear(); } bool CompositeKey::isEmpty() const @@ -152,6 +154,7 @@ bool CompositeKey::challenge(const QByteArray& seed, QByteArray& result) const * maintain backwards compatability with regular databases. */ if (m_challengeResponseKeys.length() == 0) { + result.clear(); return true; } |