Janek Bevendorff
d1a19a1009
Refactor Endian namespace
2018-01-13 14:23:27 -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
e5ec585f98
Use GCRY_MD_FLAG_SECURE in CryptoHash
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
33974d710a
Move constants in KeePass2.h to KeePass2.cpp and add a list of KDFs and ciphers
2018-01-13 14:23:25 -05:00
angelsl
a5ec7fc704
Make HashedBlockStream::atEnd report EOF correctly
2018-01-13 14:23:24 -05:00
angelsl
663b8dcb08
Remove unused SymmetricCipherSalsa20
2018-01-13 14:23:24 -05:00
angelsl
656836950e
Add support for stream cipher subclasses in SymmetricCipherStream
2018-01-13 14:23:24 -05:00
angelsl
23347b392f
Fix typo in Endian and add uint{16,32,64}ToBytes
2018-01-13 14:23:24 -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
varjolintu
acceb8efc9
High CPU fix for Linux
2018-01-11 08:52:17 +02:00
Adolfo E. García
540bcd8d70
Refactor src/DatabaseWidget.cpp
...
Based on input from PR #1167 's code review.
2018-01-09 12:47:12 +01:00
varjolintu
4316999254
Fix for building with MacPorts
2018-01-06 17:38:57 +02:00
Yen Chi Hsuan
9b5ed176cd
Improve proxy path handling for the browser plugin
...
If "Update KeePassXC binary path automatically to native messaging
scripts on startup" is not selected (default behavior), native messaging
host JSON contains wrong path " ".
2018-01-06 18:22:10 +08:00
Weslly
6a75fd84ab
Fix auto-type regression when using {delay=x}
2018-01-05 23:53:45 -02:00
Jonathan White
1a7b874c60
Consistency using filepath and minor code fixes
2018-01-04 19:09:36 -05:00
Jonathan White
36e5377e6a
Corrected use of canonicalfile info in autoopen code
2018-01-04 19:09:36 -05:00
Jonathan White
a80d1bbd2b
Addressed comments; further streamlined code
2018-01-04 19:09:36 -05:00
Jonathan White
c2d04499ab
Remove lock file and cleanup file handling [ #1002 ]
2018-01-04 19:09:36 -05:00
varjolintu
06518c5736
keepassxc-browser
2018-01-04 21:42:20 +01:00
frostasm
3720c5ef79
Add test for drag and drop database files into main window
2018-01-03 16:12:05 +02:00
frostasm
165d664524
Pass (using IPC) command line filenames to already running instance
2018-01-03 16:12:05 +02:00
frostasm
7b9b23b143
Implement drag&drop support in main form to open database files
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
203960b4b5
rename to executeAutoType
2018-01-03 12:56:18 +01:00
thez3ro
3d5ff723e9
fix codestyle
2018-01-03 12:56:18 +01:00
thez3ro
a02a49a184
add test for syntax checking
2018-01-03 12:56:18 +01:00
Marco
8ca444aee0
add a method to perform the autotype sequence showing graphical dialogs
...
Dialogs are show when the syntax of the autotype statement is wrong or contains long delays or statements which are repeated very often
2018-01-03 12:56:18 +01:00
Marco
7ceac05395
add support for custom commands. all autotype tests are getting passed now
2018-01-03 12:56:18 +01:00
Marco
4893d99774
move autotype syntax warning and error dialogs from AutoType to DatabaseWidget in the gui folder and replaced it with a checkSyntax call.
...
this fixes part of why autotype test fails
2018-01-03 12:56:18 +01:00
Marco
393017cf3b
fix for loops now have diffrent variables. dont know why it worked before
2018-01-03 12:56:18 +01:00
Marco
6057c9f27d
fix comments
2018-01-03 12:56:18 +01:00
thez3ro
a4bdc9a71d
fix syntax error
2018-01-03 12:56:18 +01:00
Marco
fbfc2e4d07
create message boxes for saving editing autotypes statements, fix multiple messages problem on autotype execution
...
You now get an error when you try to save incorrect autotype statements and warnings if you have high delays or much repetiton in your statement.
Also you will now only get one warning if you want to perfom high delayed or often repeated statements.
2018-01-03 12:56:18 +01:00
Marco
7bb9ea201c
fix typo
2018-01-03 12:56:18 +01:00
Marco
70127bad4b
extract syntax checking methods as static methods to the Autotype class
2018-01-03 12:56:18 +01:00
Marco
2bf68b7970
fix regular expressions for delays and repetition
2018-01-03 12:56:18 +01:00
Marco
d524aea779
Extended autotype syntax to allow all things in keepass2
2018-01-03 12:56:18 +01:00
Marco
4fcedc2187
check autotype syntax, high repetion, reformat code
...
TODO: specify what should happen when autotypesyntax incorrect
2018-01-03 12:56:18 +01:00
Marco
45cb97ec85
🐛 #216 add warning on long autotypes, enable user and pw repetition
...
Auto Type now shows a warning when you try to repeat something too often.
Also you can now repeat your password and username
2018-01-03 12:56:18 +01:00
thez3ro
a89f57a2df
Fix sshagent autouic
2018-01-03 01:02:44 +01:00
Jonathan White
0bea8a881d
Prevent shadowing of application settings on MacOS
2017-12-28 18:10:56 -05:00
Janek Bevendorff
71f38f17cd
Restrict Q_OS_UNIX ifdefs to non-Mac platforms
2017-12-27 20:35:05 +01:00
Rafael Sadowski
e29d3497eb
s/Q_OS_LINUX/Q_OS_UNIX/g
...
Enable support for UNIX like OS.
2017-12-27 20:35:05 +01:00
Rafael Sadowski
8f4c2f5c58
Fix cmake build on OpenBSD
2017-12-27 20:35:05 +01:00
Janek Bevendorff
23f8d58859
Add default value for DarkTrayIcon option and fix style issues
2017-12-27 16:46:56 +01:00
Vlad N
4fa00b74ad
Moved dark icon logic into FilePath.
2017-12-27 16:44:26 +01:00
Vlad N
55271311c4
Added dark tray icon parameter to settings.
2017-12-27 16:44:25 +01:00
Janek Bevendorff
901bf62213
Generate random 128-byte stream instead of legacy XML format when creating key files
...
Add API documentation for FileKey class
Resolves #1325
2017-12-26 22:37:45 +01:00
Janek Bevendorff
f8b7ffcf8c
Add WITH_XC_SSHAGENT flag to build config and use cmake3 package
2017-12-26 13:07:10 +01:00
Jonathan White
cc1ab94a4f
Correct regression to ssh-agent from entry attachment refactor
2017-12-25 23:22:10 +01:00
frostasm
80636ab083
Use EntryAttachmentsWidget in details view
2017-12-25 14:36:43 +02:00
frostasm
c490c21cd5
Move attachments view to the separate widget EntryAttachmentsWidget
2017-12-25 14:36:43 +02:00
frostasm
ed0bda98a6
Fix failing entry model test for attachment name and size
2017-12-25 14:36:41 +02:00
frostasm
0c200d360b
Add attachments tab to details view
2017-12-24 20:10:12 +02:00
frostasm
90a64dbde2
Add drag and drop support for attachments view in EditEntryWidget
2017-12-24 20:10:12 +02:00
frostasm
bf5b96362f
Use a table view to display the list of attachments in EditEntryWidget
2017-12-24 20:10:12 +02:00
Janek Bevendorff
c579736158
Bundle qtbase translations on Windows
2017-12-23 17:47:46 +01:00
Janek Bevendorff
5b525eb9ca
Refactor Translator class to load qtbase translations from local directory if available
2017-12-23 17:47:46 +01:00
Yen Chi Hsuan
fc39e8f27d
Fix font size of URL label in the preview panel
2017-12-23 16:20:59 +08:00
Sebastian Marsching
470ddb4704
Merge branch 'develop' into issue-1148-msi-package
2017-12-22 12:14:59 +01:00
louib
8037a79673
Add \n in merge request message. ( #1310 )
2017-12-20 18:08:18 -05: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
Aleksa Sarai
8e231dfa95
cli: show: add --attributes flag ( #1289 )
...
In order for scripting to be much simpler with `keepassxc-cli show`,
provide a simple --attributesk API which effectively is just a CLI
interface for entry->attributes()->value(...). This allows for more
extensibility and prevents changes in our output formatting from
breaking existing users of keepassxc-cli (if they use --attributes).
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2017-12-16 19:14:39 -05:00
Toni Spets
76e6d498cf
SSH Agent: Split private key selection
2017-12-16 09:59:51 +02:00
Toni Spets
d2a59c556e
Refactor fixed font selection into Font class
2017-12-16 09:59:51 +02:00
louib
8b1c8f69f7
Removing password output from Estimate. ( #1281 )
...
* Removing password output from Estimate.
* clang-format
2017-12-14 20:22:59 -05:00
Jonathan White
28ad6ed552
Merge branch 'master' into develop
2017-12-11 21:10:25 -05:00
Nicolas Garnier
74dac174db
Enable translations for 'Extended ASCII' button
2017-12-08 10:52:40 +01:00
Matt Signorini
fef8f5c453
Tidied up code.
2017-12-06 17:10:25 +01:00
Matt Signorini
8f48ede957
Add keypress handler to the password generator widget so that esc quits
...
in standalone mode.
2017-12-06 17:10:25 +01:00
TheZ3ro
f2a464f626
Merge branch 'develop' into develop
2017-12-05 17:26:14 +01:00
louib
471e684151
Rename EntropyMeter -> Estimate ( #1250 )
...
* EntropyMeter -> Estimate
* Cleaning estimate
* Documentation
* clang-formatting /cli
2017-12-04 09:46:23 -05:00
Sebastian Marsching
1ce77e6f15
Remove WIX from default list of CPack generators.
...
This ensures that MSI packages are only built when explicitly requested
by using the "-G" parameter of cpack.
2017-12-03 17:49:15 +01:00
Mike Woudenberg
938cf8fce2
Adds listener for Gnome specific screensaver activation
2017-12-03 13:17:43 +01:00
frostasm
c4bbb76da4
Remove "Can't resolve placeholder" warning ( #1137 )
2017-11-30 20:07:16 +02:00
frostasm
d99dee9c40
Small refactoring related to references placeholders
2017-11-30 20:07:16 +02:00
Martin Unzner
b44092ac43
Add capability to resolve UUID
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
8c7ef64fab
Show "Can't resolve placeholder" warning only in debug mode
2017-11-30 20:07:16 +02:00
alterratz
468519cd46
Merge branch 'develop' into feature/autoopen
2017-11-28 17:29:05 +01: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
d35f3fc573
Treat warning as errors
2017-11-27 20:57:55 +01:00
Weslly
5fa76dfd66
Remove ShowToolbar
from config
2017-11-26 22:59:48 -02:00
Weslly
525d5de30c
Remove empty context menu from toolbar
2017-11-26 22:23:15 -02:00
Janek Bevendorff
8651736e61
Merge branch 'release/2.2.3' into develop
2017-11-26 18:23:48 +01:00
Janek Bevendorff
8905fe5a54
Use Consolas on Windows for PasswordEdit instead of the default Courier New, resolves #1226
2017-11-26 17:53:15 +01:00
Jonathan White
e17b3d24bf
Corrected database corruption when locked [ #1113 ]
2017-11-23 21:32:56 +01:00
thez3ro
135e8419ae
refactor saveLastDir code
2017-11-22 22:20:38 +01:00
thez3ro
cd1e0571a5
forget keyfile path, fix #1151
2017-11-22 22:20:38 +01:00
Louis-Bertrand Varin
2cd5006260
Formatting
2017-11-21 14:06:40 -05:00
Louis-Bertrand Varin
94ea323836
Extracting default clone flags.
2017-11-21 14:06:40 -05:00
Louis-Bertrand Varin
2ff56fe86c
Only updating custom group icon if set.
2017-11-21 14:06:40 -05:00
Louis-Bertrand Varin
9603c91877
Merge : Synchronising groups.
2017-11-21 14:06:40 -05:00
Vladimir Svyatski
236846baa7
Add menu shortcut Alt+m (underlined letter) for "Empty recycle bin" for consistency with other items in the same submenu which all have "Alt+underlined letter" style shortcuts.
2017-11-21 02:12:55 +01:00
Balázs Meskó
a4d1293eaf
I18n fixes in Service.cpp ( #875 )
...
Fix plural strings
2017-11-21 02:12:14 +01: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