Allow a previously yubikey protected database to be saved without the yubikey challenge-response code.

This commit is contained in:
Pedro Alves authored and Kyle Manna committed 2017-01-08 16:48:12 -08:00
1 parent 951fa96848
commit d398d367c1
1 file changed
+3
+3
View File
@@ -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;
}