thez3ro
5f9f27604b
fix autotype custom attributes
2018-03-04 23:08:58 +01:00
Janek Bevendorff
199f0932bf
Add additional KDBX4 upgrade tests for composite key integrity
2018-03-01 19:26:18 -05:00
Janek Bevendorff
e6c19fdcb1
Add MockChallengeResponseKey and additional composite key component test
2018-03-01 19:26:18 -05:00
Janek Bevendorff
0d4aff55bc
Don't upgrade to KDBX 4 when CustomData are present only in meta data section, resolves #1565
2018-03-01 17:59:01 +01:00
Janek Bevendorff
7fbdcd3fed
Add tests for newline sanitization
2018-02-26 17:27:17 +01:00
Janek Bevendorff
da52da37b3
Add additional tests for saving and reading KDBX files with custom data
2018-02-21 13:23:14 +01:00
Janek Bevendorff
5410d78bbb
Properly save custom header data
...
Ensure adding custom data upgrades to KDBX4
Implement review feedback
2018-02-21 13:23:14 +01:00
Janek Bevendorff
114f00e1e8
Add CustomData regression tests
2018-02-21 13:23:14 +01:00
Janek Bevendorff
698b44f71c
Update zxcvbn library
2018-02-21 06:18:33 -05:00
Jonathan White
397d804cdd
Add tests & minor edits
2018-02-21 09:04:46 +01:00
Nick Spain
7dfcad6f8f
Write regression test for #1447
2018-02-18 16:17:12 +01:00
thez3ro
7713a7b750
Add test case for reference resolution in cloned entries
...
Improve test suite to use smart pointers where possible
2018-02-17 18:04:29 +01:00
Toni Spets
d58e3ca34d
SSH Agent: Support old AES-128-CBC encrypted keys
2018-02-11 15:31:06 +01:00
Toni Spets
d2359df2b0
SymmetricCipher: Add support for AES-128-CBC
2018-02-11 15:31:06 +01:00
thez3ro
a76c92ed9a
change inAutotype logic, preventing multiple autotype call
2018-02-04 23:13:15 +01:00
thez3ro
a9479fd662
refactor autotype sequences and entry-point functions
2018-02-04 23:13:15 +01:00
thez3ro
065a85e05c
fix effective autotype sequence
2018-02-04 23:13:15 +01:00
Toni Spets
cbb70cdc7c
SSH Agent: Support old unencrypted DSA and RSA keys
2018-02-04 15:59:08 +02:00
Janek Bevendorff
17e3f1c21f
Create history item when setting up a TOTP seed, resolves #1445
2018-02-01 19:16:17 +01:00
Jonathan White
8c8a61ddfe
Disable auto save for GUI tests
2018-01-28 14:06:17 -05:00
Janek Bevendorff
b7c5283a66
Move duplicate attachment test to TestKeePass2Format, so it's also run for KDBX3
2018-01-25 02:27:42 +01:00
Janek Bevendorff
6a97a6dafc
Add test for catching KDBX4 attachment mapping errors
2018-01-25 01:49:19 +01:00
Janek Bevendorff
7a6850d5fe
Move useful QTest template specializations to global header file
...
Fix KDBX test linker errors on Windows
2018-01-24 13:32:37 +01:00
Janek Bevendorff
8dd6cdeb69
Fix history truncation based on max size and extend unit tests
2018-01-23 02:31:29 +01:00
Christian Kieschnick
258438f01f
Fix code-style issues
...
Fixed issues pointed out during review
2018-01-23 00:57:04 +01:00
Christian Kieschnick
943dc6cdd6
Add tests for modified, fix history for autotype
...
Added tests to ensure #1387 works
Fixed issue detected during testing - AutoTypeAssociations were not
pushed to history
2018-01-23 00:57:01 +01:00
Fonic
8c78aca69e
Code cleanup
...
Comprehensive code cleanup:
- formatting
- comments
- obsolete code
2018-01-21 15:17:05 +01:00
Fonic
9ff648177c
Update entry model test to account for additional column 'Paperclip'
...
Update comparison values of modelProxy->columnCount() to account for
additional column 'Paperclip'
2018-01-21 15:17:05 +01:00
Fonic
66291ecc38
Update GUI test to account for changed column indices
...
Update clicks within entry view referencing column indices to account
for changed column indices due to new way of showing/hiding column Entry
Model::ParentGroup. This column now has fixed index 0 wether it's shown
or hidden, thus all indices need to be shifted by +1 when not in search
mode
2018-01-21 15:17:05 +01:00
Fonic
268035ff9e
Update entry model test to account for additional columns
...
Update comparison values of modelProxy->columnCount() to account for
additional columns 'Password', 'Notes', 'Expires', 'Created', 'Modified',
'Accessed' and 'Attachments'
2018-01-21 15:17:05 +01:00
Janek Bevendorff
e20cecf7aa
Remove obsolete ToDbExporter tests
2018-01-18 01:51:41 +01:00
Janek Bevendorff
679a7b6ec2
Add test for KDBX 2 -> 3 upgrade
2018-01-18 01:51:39 +01:00
Janek Bevendorff
a595239624
Refactor and extend file format tests
2018-01-18 01:51:37 +01:00
Janek Bevendorff
cdefc7ea9b
Fix KDBX reader tests not being executed
2018-01-18 01:51:34 +01:00
Janek Bevendorff
98591c3bc0
Add tests for FileKey::Type
2018-01-14 18:26:28 -05:00
Janek Bevendorff
90380adc90
Fix test compilation errors
...
* Use legacy AES-KDF mode for KeePass1Reader
2018-01-13 14:25:02 -05:00
Janek Bevendorff
a6ddc22fb8
Refactor database readers/writers and XML handling
...
* Refactor Kdbx*Reader
* Refactor KdbxWriter
* Refactor KdbxXmlReader
* Refactor KdbxXmlWriter
2018-01-13 14:24:58 -05:00
Janek Bevendorff
72a1c65d00
Fix memory leaks in tests
2018-01-13 14:24:58 -05:00
Janek Bevendorff
ccfd7a065c
Fix coding style and GUI test
2018-01-13 14:24:57 -05:00
angelsl
564188b0d3
Report database read failure reason in tests
2018-01-13 14:24:55 -05:00
Jonathan White
bef7ba2cfe
Implements KDBX4 format with Argon2 KDF
...
* Adds KDBX4 reader/writer interfaces
* Adds KDBX4 XML reader/write interfaces
* Implements test cases for KDBX4
* Fully compatible with KeePass2
* Corrects minor issues with Argon2 KDF
2018-01-13 14:24:55 -05:00
Jonathan White
7dba788d09
Correct failure in GUI tests due to widget name
2018-01-13 14:24:54 -05:00
Jonathan White
9140893cd3
Correct Endian function use in Random tests
2018-01-13 14:23:29 -05:00
Janek Bevendorff
15648991fc
Refactor Kdf class, remove fields concept
2018-01-13 14:23:28 -05:00
angelsl
3461cbfb06
Rename KeePass2{,Xml}{R,W} to Kdbx3{,Xml}{R,W}, and add a redirection class
...
This class will in future select Kdbx4{R,W} as appropriate.
2018-01-13 14:23:26 -05:00
angelsl
6a0d05e1ef
Add support for various algorithms for kdbx4
...
* Add SHA512 support to CryptoHash
* Add ChaCha20 support
* Add HMAC support
* Add new HmacBlockStream, used in KDBX 4
* Add support for ChaCha20 protected stream
2018-01-13 14:23:26 -05:00
angelsl
4532108678
Add support for KDFs and cyphers to the db settings widget
2018-01-13 14:23:25 -05:00
angelsl
2e19af5032
Pull out KDFs into their own class hierarchy
...
In preparation for multiple KDFs in KDBX 4
2018-01-13 14:23:20 -05:00
frostasm
3720c5ef79
Add test for drag and drop database files into main window
2018-01-03 16:12:05 +02:00
thez3ro
6d046f251e
Remove minus since it's an invalid literal
2018-01-03 12:56:18 +01:00
thez3ro
e803076063
improve regex filtering
2018-01-03 12:56:18 +01:00
thez3ro
a02a49a184
add test for syntax checking
2018-01-03 12:56:18 +01:00
Janek Bevendorff
60b3037e4a
Add additional unit tests for key file generation
2017-12-27 01:21:49 +01:00
Jonathan White
d217da421f
Correct test failures in mingw
2017-12-25 11:10:30 -05:00
frostasm
ed0bda98a6
Fix failing entry model test for attachment name and size
2017-12-25 14:36:41 +02:00
Aleksa Sarai
9f8943c89b
keepassxc-cli show: resolve references in output ( #1280 )
...
* core: database: make UUID searching case-insensitive
4c4d8a5e84
("Implement search for reference placeholder based on
fields other than ID") changed the semantics of searching-by-reference
in KeePassXC. Unforuntately it contained a bug where it implicitly
became case-sensitive to UUIDs, which broke existing databases that used
references (especially since the default reference format uses a
different case to the UUID used while searching).
The tests didn't catch this because ->toHex() preserves the case that it
was provided, they have been updated to check that UUIDs are case
insensitive.
* cli: show: resolve references in output
Previously, `keepassxc-cli show` would not resolve references. This
would make it quite hard to script around its output (since there's not
interface to resolve references manually either). Fix this by using
resolveMultiplePlaceholders as with all other users of ->password() and
related entry fields.
Fixes : keepassxreboot/keepassxc#1260
* tests: entry: add tests for ref-cloned entries
This ensures that the most "intuitive" current usage of references
(through the clone feature of the GUI) remains self-consistent and
always produces the correct results. In addition, explicitly test that
case insensitivity works as expected. These should avoid similar
regressions in reference handling in the future.
* http: resolve references in AccessControlDialog
The access control dialog previously would not show the "real" username
or "real" title when asking for permission to give access to entries.
Fix this by resolving it, as we do in many other places.
Fixes : keepassxreboot/keepassxc#1269
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2017-12-17 10:44:12 -05:00
Jonathan White
0141fa2f1c
Correct memory leaks in TestGroup.cpp
2017-12-12 23:46:25 -05:00
Jonathan White
28ad6ed552
Merge branch 'master' into develop
2017-12-11 21:10:25 -05:00
frostasm
d99dee9c40
Small refactoring related to references placeholders
2017-11-30 20:07:16 +02:00
Martin Unzner
d4d0f4c131
Add failing test for complete entry resolution
2017-11-30 20:07:16 +02:00
frostasm
4c4d8a5e84
Implement search for reference placeholder based on fields other than ID
2017-11-30 20:07:16 +02:00
frostasm
806dd5d783
Add unit test to search for referenced entries based on fields other than ID
2017-11-30 20:07:16 +02:00
Michal Kaptur
0ff75e7a88
Fixed memory leaks in non-gui tests
...
Fixed 2 memory leaks in production code and a few in testcases. As a
result leak_check_at_exit ASAN option does not need to turned off for
non-gui tests.
Smart pointers should be used elsewhere for consistency, but the sooner
this fixes are delivered, the lesser memory leaks are introduced.
2017-11-27 23:36:09 +01:00
Janek Bevendorff
8651736e61
Merge branch 'release/2.2.3' into develop
2017-11-26 18:23:48 +01:00
Toni Spets
a0bfa710be
Add missing crypto init to OpenSSHKey test
2017-11-25 11:32:13 +02:00
Louis-Bertrand Varin
f25c23c051
Adding tests for Group::clone
2017-11-21 14:24:24 -05:00
Louis-Bertrand Varin
9603c91877
Merge : Synchronising groups.
2017-11-21 14:06:40 -05:00
Weslly
19ac36b965
Change QTotp class name to Totp
2017-11-20 22:25:09 -02:00
Joel Smith
8ca52ba8f9
Add initial Steam TOTP support
...
* Add the concept of custom TOTP encoders, each with potential for custom
code alphabet, length, step interval and code direction (i.e. reversed)
* Select custom encoder via overload of the digits field of a loaded entry
* Allow selection of custom encoders via the "TOTP Settings" field's
size, as currently done by KeeTrayTOTP for Steam. Use "S" for the
short name of the Steam custom encoder
* Allow selection of custom encoders via the "otp" field by appending
a "&encoder=<name>" field to the URL query. For example,
"&encoder=steam"
* Update TOTP set-up dialog to permit selection between (default,
steam, custom) settings.
2017-11-20 17:08:01 -07:00
Toni Spets
4840c2c64f
SSH agent support
2017-11-19 14:38:59 +02:00
Toni Spets
a81a5fa31b
SymmetricCipher: Support CTR mode
...
Includes AES-256-CTR non-stream tests
2017-11-19 14:38:59 +02:00
thez3ro
d6e8e1be6e
use QTemporaryFile when creating a database for guitest
2017-11-02 20:07:41 +01:00
thez3ro
c3c67f18b8
add test for DB creation
2017-11-02 20:07:41 +01:00
Jonathan White
4e7f2c6a4f
Fix apply button not saving new entries
2017-10-28 09:23:45 -04:00
frostasm
1f5a0c0130
Add test for resolved placeholders in window association title
2017-10-23 22:55:22 +03:00
Jonathan White
1a4303bbce
Added tests for retention of entry history after merge
2017-10-21 22:49:20 -04:00
Janek Bevendorff
b510243dd8
Merge branch 'release/2.2.2' into develop
2017-10-21 22:23:27 +02:00
Adolfo E. García
f1d99dd0ed
Improve testing of Base32
2017-10-21 13:15:02 +02:00
Adolfo E. García
24f560aaa2
Replace Optional with QVariant
2017-10-21 13:15:02 +02:00
Adolfo E. García
19eb6a8a60
Add new Base32 implementation
2017-10-21 13:15:02 +02:00
frostasm
f0fcc19915
Implement recursive resolving for placeholders
2017-10-19 22:40:26 +03:00
frostasm
5e0df62d7a
Add processing of the url placeholders
2017-10-19 22:40:26 +03:00
Janek Bevendorff
ab21f718ba
Merge branch 'release/2.2.2' into develop
2017-10-12 14:10:20 +02:00
louib
242faa138b
Add custom icons when merging. ( #1008 )
...
* Adding missing custom icons on merge.
* qDebug when adding icon
* Adding test for merge custom icons.
2017-10-07 10:40:29 -04:00
Jonathan White
5098866413
Rewrote resolveUrl function to conform to various test cases
2017-10-03 18:40:32 -04:00
Jonathan White
14e3d9d576
Merge remote-tracking branch 'origin/master' into develop
...
# Conflicts:
# src/core/Group.cpp
2017-10-01 11:10:10 -04:00
Jonathan White
611a74d74d
Added tests to confirm mismatched passwords block saving
2017-09-29 18:11:53 -04:00
Adolfo E. García
522e132200
New base32 implementation ( #984 )
...
* Add new base32 encode/decode implementation
* Remove old base32 implementation
* Updates licensing info
2017-09-24 18:00:12 -04:00
louib
8e8d9f39cb
Merge : making sure the group is populated. ( #942 )
2017-09-20 11:39:10 -04:00
louib
6e1fd0694f
CLI : basic entry manipulation commands. ( #919 )
...
* CLI : basic entry manipulation commands.
* Code review.
2017-09-06 09:14:41 -04:00
louib
1220b7d501
Feature : Update entries across groups when merging ( #807 )
...
* Feature : Update entries across groups when merging
* Styling
2017-09-05 10:28:47 -04:00
louib
b2107b5e27
Adding Locate command. ( #829 )
...
* Adding Locate command.
* Adding group searching in locate
2017-08-05 12:20:26 -04:00
louib
1d30283514
Feature : --key-file option for CLI ( #816 )
...
* removing readFromLine
* Removing gui-prompt
* execute uses an arg list.
* Testing with key-file
* Fixing the -a option in EntropyMeter.
2017-07-25 13:41:52 -04:00
Janek Bevendorff
90468e8095
Merge branch 'release/2.2.1' into develop
2017-07-20 14:15:14 +02:00
thez3ro
35c6df2535
resolve URL for correct favicon downloading, fixes #240 #238
2017-07-18 18:40:18 +02:00
louib
3b23e68540
Refactoring : Introducing Command class for CLI commands ( #778 )
2017-07-17 15:16:53 -04:00
Jonathan White
9a7e6850d6
Merge remote-tracking branch 'origin/develop' into release/2.2.0
2017-06-23 14:21:30 -04:00
louib
48ea024d7e
Adding support for listing a group. ( #652 )
...
* Adding support for listing a group.
* added findGroupByPath
* Removing useless asserts.
* Code review.
2017-06-21 17:34:49 -04:00
Weslly
719323e9c3
Add option to limit search to current group
2017-06-21 01:01:50 -03:00
thez3ro
a53b111182
Update and fix copyright headers
2017-06-14 15:54:43 +02:00