mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-19 12:24:41 -04:00
CLI: Add Import XML command (#3572)
The CLI now contains an "import" command that creates a new database from the specified XML export. The new database is in kdbx 4 format, and does not currently accept a keyfile in database creation. This change is required to create new databases from XML backups. Fixes #2458
This commit is contained in:
parent
82cfedfa43
commit
dbe15d32e5
14 changed files with 2127 additions and 1904 deletions
3818
tests/TestCli.cpp
3818
tests/TestCli.cpp
File diff suppressed because it is too large
Load diff
|
@ -58,6 +58,7 @@ private slots:
|
|||
void testExport();
|
||||
void testGenerate_data();
|
||||
void testGenerate();
|
||||
void testImport();
|
||||
void testKeyFileOption();
|
||||
void testNoPasswordOption();
|
||||
void testHelp();
|
||||
|
@ -77,11 +78,13 @@ private slots:
|
|||
private:
|
||||
QByteArray m_dbData;
|
||||
QByteArray m_dbData2;
|
||||
QByteArray m_xmlData;
|
||||
QByteArray m_yubiKeyProtectedDbData;
|
||||
QByteArray m_keyFileProtectedDbData;
|
||||
QByteArray m_keyFileProtectedNoPasswordDbData;
|
||||
QScopedPointer<TemporaryFile> m_dbFile;
|
||||
QScopedPointer<TemporaryFile> m_dbFile2;
|
||||
QScopedPointer<TemporaryFile> m_xmlFile;
|
||||
QScopedPointer<TemporaryFile> m_keyFileProtectedDbFile;
|
||||
QScopedPointer<TemporaryFile> m_keyFileProtectedNoPasswordDbFile;
|
||||
QScopedPointer<TemporaryFile> m_yubiKeyProtectedDbFile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue