mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-07 06:27:39 +03:00
Properly save custom header data
Ensure adding custom data upgrades to KDBX4 Implement review feedback
This commit is contained in:
parent
114f00e1e8
commit
5410d78bbb
26 changed files with 189 additions and 174 deletions
|
@ -320,6 +320,17 @@ bool Database::verifyKey(const CompositeKey& key) const
|
|||
return (m_data.key.rawKey() == key.rawKey());
|
||||
}
|
||||
|
||||
QVariantMap Database::publicCustomData() const
|
||||
{
|
||||
return m_data.publicCustomData;
|
||||
}
|
||||
|
||||
void Database::setPublicCustomData(const QVariantMap& customData)
|
||||
{
|
||||
m_data.publicCustomData = customData;
|
||||
}
|
||||
|
||||
|
||||
void Database::createRecycleBin()
|
||||
{
|
||||
Group* recycleBin = Group::createRecycleBin();
|
||||
|
@ -578,14 +589,6 @@ void Database::setKdf(QSharedPointer<Kdf> kdf)
|
|||
m_data.kdf = std::move(kdf);
|
||||
}
|
||||
|
||||
void Database::setPublicCustomData(QByteArray data) {
|
||||
m_data.publicCustomData = data;
|
||||
}
|
||||
|
||||
QByteArray Database::publicCustomData() const {
|
||||
return m_data.publicCustomData;
|
||||
}
|
||||
|
||||
bool Database::changeKdf(QSharedPointer<Kdf> kdf)
|
||||
{
|
||||
kdf->randomizeSeed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue