mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 14:32:39 -04:00
Enforce that group/entry uuid is set when writing a database.
This commit is contained in:
parent
4ebcd53801
commit
bce46c5ece
5 changed files with 15 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "core/Database.h"
|
||||
#include "core/Group.h"
|
||||
#include "core/Metadata.h"
|
||||
#include "crypto/Crypto.h"
|
||||
#include "format/KeePass2XmlReader.h"
|
||||
#include "config-keepassx-tests.h"
|
||||
|
||||
|
@ -63,6 +64,8 @@ QDateTime TestKeePass2XmlReader::genDT(int year, int month, int day, int hour, i
|
|||
|
||||
void TestKeePass2XmlReader::initTestCase()
|
||||
{
|
||||
Crypto::init();
|
||||
|
||||
KeePass2XmlReader* reader = new KeePass2XmlReader();
|
||||
QString xmlFile = QString(KEEPASSX_TEST_DATA_DIR).append("/NewDatabase.xml");
|
||||
m_db = reader->readDatabase(xmlFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue