Johan Ouwerkerk
a5794e02da
Refactor: turn the base32 wrapper into a static library
...
This library is meant for private use by Keysmith, to simplify linking to the base32 functionality in CMake files.
2019-12-28 06:40:31 +00:00
Friedrich W. H. Kossebau
7daddb524c
Cleanup CMakeLists.txt a bit
...
* do cmake_minimum_required as first thing, as recommended
* bump KF to 5.37, first release with Kirigami (Qt 5.7 matching min dep)
* use KF5_MIN_VERSION also with ECM
* include KDE CMake settings as first
* remove unused cmake includes
* remove duplicated enable_testing()
* use correct KDEInstallDirs variables
2019-12-18 17:29:13 +01:00
Johan Ouwerkerk
68bd4dad00
Fix failing tests due to inconsistencies in French number formatting
2019-10-22 19:34:38 +02:00
Johan Ouwerkerk
543766b819
Introduce a validator for the HOTP counter field.
2019-10-02 21:56:58 +02:00
Johan Ouwerkerk
d60cb92b21
Refactor: support injecting locales through test data
2019-10-02 21:34:33 +02:00
Johan Ouwerkerk
3bc3a14575
Introduce a validator for name input fields (account name).
2019-09-30 20:25:56 +02:00
Johan Ouwerkerk
bccf2565b8
Refactor: extract the common logic/boilerplate of a validator test to a helper utility (header)
...
With this change adding tests for new validators will be much less work.
2019-09-29 19:51:00 +02:00
Johan Ouwerkerk
eeeac7511c
Introduce a custom base32 secret validator to perform input validation.
...
- Add a new static library "validator_lib" covering the "validators" namespace in C++
- Introduce the Base32Validator to perform input field validation with fixup support
2019-09-29 12:48:25 +02:00
Johan Ouwerkerk
4fe0d069cd
Add a test to check the TOTP implementation can (at least) generate the values from the RFC test vector correctly.
2019-09-11 09:40:44 +02:00
Johan Ouwerkerk
2d147e2427
Add a test to check the HOTP implementation can (at least) generate the values from the RFC test vector correctly.
2019-09-11 09:40:44 +02:00
Johan Ouwerkerk
6d7c56f94b
Add autotests for validating the new base32 decoding utilities.
2019-09-11 09:40:44 +02:00