Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2012-04-21 18:45:46 +0400
committerFelix Geyer <debfx@fobos.de>2012-04-21 18:45:46 +0400
commit8acd6f74d8c4ef396787c2e7b1f4ef91b5670a1e (patch)
tree410948b4ae7b1181b6a56633c6a15296bcfee075 /tests/data
parente8ac70120b113b28cd42ac7a5e72663c912fbe64 (diff)
Support KeePass format 3.00 (used by KeePass2 >= 2.15).
Closes #6 Attachments are now stored in a pool under Metadata instead of in entries. The protected flag of attachments isn't supported anymore. New metadata attributes: color, historyMaxItems and historyMaxSize. Dropped metadata attribute: autoEnableVisualHiding.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/Compressed.kdbxbin1870 -> 1918 bytes
-rw-r--r--tests/data/Format200.kdbxbin0 -> 2302 bytes
-rw-r--r--tests/data/NewDatabase.xml41
-rw-r--r--tests/data/NonAscii.kdbxbin2574 -> 2798 bytes
-rw-r--r--tests/data/NonAscii.kdbx.key1
-rw-r--r--tests/data/ProtectedStrings.kdbxbin1950 -> 1934 bytes
6 files changed, 35 insertions, 7 deletions
diff --git a/tests/data/Compressed.kdbx b/tests/data/Compressed.kdbx
index fd3108b93..af12d73aa 100644
--- a/tests/data/Compressed.kdbx
+++ b/tests/data/Compressed.kdbx
Binary files differ
diff --git a/tests/data/Format200.kdbx b/tests/data/Format200.kdbx
new file mode 100644
index 000000000..c3b26cdbc
--- /dev/null
+++ b/tests/data/Format200.kdbx
Binary files differ
diff --git a/tests/data/NewDatabase.xml b/tests/data/NewDatabase.xml
index 26b245f24..d07b83693 100644
--- a/tests/data/NewDatabase.xml
+++ b/tests/data/NewDatabase.xml
@@ -9,13 +9,16 @@
<DefaultUserName>DEFUSERNAME</DefaultUserName>
<DefaultUserNameChanged>2010-08-08T17:27:45Z</DefaultUserNameChanged>
<MaintenanceHistoryDays>127</MaintenanceHistoryDays>
+ <Color>#FFEF00</Color>
+ <MasterKeyChanged>2012-04-05T17:09:34Z</MasterKeyChanged>
+ <MasterKeyChangeRec>101</MasterKeyChangeRec>
+ <MasterKeyChangeForce>-1</MasterKeyChangeForce>
<MemoryProtection>
<ProtectTitle>False</ProtectTitle>
<ProtectUserName>True</ProtectUserName>
<ProtectPassword>False</ProtectPassword>
<ProtectURL>True</ProtectURL>
<ProtectNotes>False</ProtectNotes>
- <AutoEnableVisualHiding>False</AutoEnableVisualHiding>
</MemoryProtection>
<CustomIcons>
<Icon>
@@ -30,6 +33,12 @@
<EntryTemplatesGroupChanged>2010-08-08T17:24:19Z</EntryTemplatesGroupChanged>
<LastSelectedGroup>lmU+9n0aeESKZvcEze+bRg==</LastSelectedGroup>
<LastTopVisibleGroup>lmU+9n0aeESKZvcEze+bRg==</LastTopVisibleGroup>
+ <HistoryMaxItems>-1</HistoryMaxItems>
+ <HistoryMaxSize>5242880</HistoryMaxSize>
+ <Binaries>
+ <Binary ID="0" Compressed="True">H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/InZ29+7t3//0wcHD/wfGx4SmCgAAAA==</Binary>
+ <Binary ID="1" Compressed="True">H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/IrLJdJafX8yLn377/wCfD1fOCwAAAA==</Binary>
+ </Binaries>
<CustomData>
<Item>
<Key>A Sample Test Key</Key>
@@ -67,6 +76,7 @@
<ForegroundColor />
<BackgroundColor />
<OverrideURL />
+ <Tags>a b c</Tags>
<Times>
<LastModificationTime>2010-08-25T16:19:25Z</LastModificationTime>
<CreationTime>2010-08-25T16:13:54Z</CreationTime>
@@ -90,12 +100,16 @@
</String>
<String>
<Key>URL</Key>
- <Value />
+ <Value ProtectInMemory="True" />
</String>
<String>
<Key>UserName</Key>
- <Value>User Name</Value>
+ <Value ProtectInMemory="True">User Name</Value>
</String>
+ <Binary>
+ <Key>myattach.txt</Key>
+ <Value Ref="1" />
+ </Binary>
<AutoType>
<Enabled>False</Enabled>
<DataTransferObfuscation>0</DataTransferObfuscation>
@@ -111,6 +125,7 @@
<ForegroundColor />
<BackgroundColor />
<OverrideURL />
+ <Tags />
<Times>
<LastModificationTime>2010-08-25T16:13:54Z</LastModificationTime>
<CreationTime>2010-08-25T16:13:54Z</CreationTime>
@@ -140,6 +155,10 @@
<Key>UserName</Key>
<Value>User Name</Value>
</String>
+ <Binary>
+ <Key>myattach.txt</Key>
+ <Value Ref="0" />
+ </Binary>
<AutoType>
<Enabled>True</Enabled>
<DataTransferObfuscation>0</DataTransferObfuscation>
@@ -155,6 +174,7 @@
<ForegroundColor />
<BackgroundColor />
<OverrideURL />
+ <Tags />
<Times>
<LastModificationTime>2010-08-25T16:15:43Z</LastModificationTime>
<CreationTime>2010-08-25T16:13:54Z</CreationTime>
@@ -184,6 +204,10 @@
<Key>UserName</Key>
<Value>User Name</Value>
</String>
+ <Binary>
+ <Key>myattach.txt</Key>
+ <Value Ref="1" />
+ </Binary>
<AutoType>
<Enabled>True</Enabled>
<DataTransferObfuscation>0</DataTransferObfuscation>
@@ -202,6 +226,7 @@
<ForegroundColor>#FF0000</ForegroundColor>
<BackgroundColor>#FFFF00</BackgroundColor>
<OverrideURL>http://override.net/</OverrideURL>
+ <Tags />
<Times>
<LastModificationTime>2010-08-25T16:20:24Z</LastModificationTime>
<CreationTime>2010-08-25T16:15:45Z</CreationTime>
@@ -233,15 +258,15 @@
</String>
<String>
<Key>URL</Key>
- <Value>http://www.keepassx.org/</Value>
+ <Value ProtectInMemory="True">http://www.keepassx.org/</Value>
</String>
<String>
<Key>UserName</Key>
- <Value>notDEFUSERNAME</Value>
+ <Value ProtectInMemory="True">notDEFUSERNAME</Value>
</String>
<Binary>
- <Key>testattach.txt</Key>
- <Value>NDI=</Value>
+ <Key>myattach.txt</Key>
+ <Value Ref="1" />
</Binary>
<AutoType>
<Enabled>True</Enabled>
@@ -322,6 +347,7 @@
<ForegroundColor />
<BackgroundColor />
<OverrideURL />
+ <Tags />
<Times>
<LastModificationTime>2010-08-25T16:21:15Z</LastModificationTime>
<CreationTime>2010-08-25T16:20:45Z</CreationTime>
@@ -384,6 +410,7 @@
<ForegroundColor />
<BackgroundColor />
<OverrideURL />
+ <Tags />
<Times>
<LastModificationTime>2010-08-25T16:20:32Z</LastModificationTime>
<CreationTime>2010-08-25T16:20:27Z</CreationTime>
diff --git a/tests/data/NonAscii.kdbx b/tests/data/NonAscii.kdbx
index d4e4ec547..285831f8e 100644
--- a/tests/data/NonAscii.kdbx
+++ b/tests/data/NonAscii.kdbx
Binary files differ
diff --git a/tests/data/NonAscii.kdbx.key b/tests/data/NonAscii.kdbx.key
new file mode 100644
index 000000000..3a3610971
--- /dev/null
+++ b/tests/data/NonAscii.kdbx.key
@@ -0,0 +1 @@
+Δöض
diff --git a/tests/data/ProtectedStrings.kdbx b/tests/data/ProtectedStrings.kdbx
index 9b903f7ae..2614097fc 100644
--- a/tests/data/ProtectedStrings.kdbx
+++ b/tests/data/ProtectedStrings.kdbx
Binary files differ