mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Allow a previously yubikey protected database to be saved without the yubikey challenge-response code.
This commit is contained in:
parent
951fa96848
commit
d398d367c1
@ -43,7 +43,9 @@ CompositeKey::~CompositeKey()
|
|||||||
void CompositeKey::clear()
|
void CompositeKey::clear()
|
||||||
{
|
{
|
||||||
qDeleteAll(m_keys);
|
qDeleteAll(m_keys);
|
||||||
|
qDeleteAll(m_challengeResponseKeys);
|
||||||
m_keys.clear();
|
m_keys.clear();
|
||||||
|
m_challengeResponseKeys.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CompositeKey::isEmpty() const
|
bool CompositeKey::isEmpty() const
|
||||||
@ -152,6 +154,7 @@ bool CompositeKey::challenge(const QByteArray& seed, QByteArray& result) const
|
|||||||
* maintain backwards compatability with regular databases.
|
* maintain backwards compatability with regular databases.
|
||||||
*/
|
*/
|
||||||
if (m_challengeResponseKeys.length() == 0) {
|
if (m_challengeResponseKeys.length() == 0) {
|
||||||
|
result.clear();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user