summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge branch 'enumerate'Szczepan Zalega2020-06-13
|\ | | | | | | | | | | Check for null pointer in the provided data Fixes #168
| * Invert if condition for readabilitySzczepan Zalega2020-06-13
| |
| * device: Check for nullptr in Device::enumerateRobin Krahl2020-01-06
| | | | | | | | | | | | While the fields of the hid_device_info struct should not be null, it is better to perform an explicit check before trying to construct strings from them.
* | Merge branch 'serial-number-u32'Szczepan Zalega2020-06-13
|\ \ | | | | | | | | | | | | | | | Return serial number as uint32_t Fixes #174
| * | Return serial number as uint32_t from C APIRobin Krahl2020-04-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the function NK_device_serial_number_as_u32 to the C API. It is similar to NK_device_serial_number but returns the raw unsigned integer instead of a formatted string. This patch also adds a simple test case that ensures that the number is not zero. Fixes #172.
| * | NitrokeyManager: Refactor get_serial_numberRobin Krahl2020-04-02
| | | | | | | | | | | | | | | | | | To avoid duplicate code, this patch refactors the get_serial_number method to use get_serial_number_as_u32 internally. It does not change get_serial_number’s behavior.
| * | NitrokeyManager: Also return serial number as u32Robin Krahl2020-04-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the get_serial_number_as_u32 method to NitrokeyManager. It returns the serial number as a 32-bit unsigned integer. Previously, we only returned it as a string generated from the integer value, get_serial_number. While get_serial_number returns an empty string if no device is connected and "NA" if an unknown model is connected, the new method throws a DeviceNotConnected exception in the first case and returns zero in the second case as we cannot express the three states in one integer return value.
* | | Merge branch 'CI-cleanup'Szczepan Zalega2020-06-13
|\ \ \ | | | | | | | | | | | | | | | | | | | | Update CI settings Add new compilers and use Ubuntu 18.04
| * | | Make proper call to install pip packageSzczepan Zalega2020-06-13
| | | |
| * | | Move offline Python tests call to newer UbuntuSzczepan Zalega2020-06-13
| | | |
| * | | Update build configurationsSzczepan Zalega2020-06-13
|/ / /
* | | Merge branch 'purism_device'Szczepan Zalega2020-06-13
|\ \ \ | | | | | | | | | | | | | | | | | | | | Support Librem Key Fixes #163
| * | | Revert API changeSzczepan Zalega2020-06-13
| | | | | | | | | | | | | | | | | | | | Remove the change to keep binary compatibility. Use the vendor_id field from the dev description.
| * | | Identify Librem Key, behaving like Nitrokey Pro deviceAmit Aronovitch2019-10-03
| | | |
* | | | Merge branch 'esven/master'Szczepan Zalega2020-06-13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Correct Python 2 and 3 examples Fixes #178
| * | | | Add Python3 Example in README.mdSven Ebenfeld2020-04-28
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
| * | | | add python_bindings_example for python3Sven Ebenfeld2020-04-28
|/ / / / | | | | | | | | | | | | Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
* | / / Fix build warning - possibly uninitialized valueSzczepan Zalega2020-04-16
| |/ / |/| |
* | | Merge branch 'pro-bootloader'Szczepan Zalega2020-02-26
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | Add tests for the Nitrokey Pro bootloader support. Allow to reconnect to the device during the test execution (e.g. for a reinsertion). Connected: https://github.com/Nitrokey/nitrokey-pro-firmware/issues/69
| * | Add missing skip for lower firmware versionSzczepan Zalega2020-02-26
| | |
| * | Data retention test. Refactoring. Helper functions.Szczepan Zalega2020-02-26
| | |
| * | Refactor. Allow device reconnection.Szczepan Zalega2020-02-26
| | |
| * | Refactor move 2Szczepan Zalega2020-02-26
| | |
| * | Refactor moveSzczepan Zalega2020-02-26
| | |
| * | Refactor renameSzczepan Zalega2020-02-26
| | |
| * | Bootloader data retention testSzczepan Zalega2020-02-26
| | |
| * | Skip bootloader activation unless specified by the switchSzczepan Zalega2020-02-26
| | |
| * | Rename the actual bootloader switching test to a distinct nameSzczepan Zalega2020-02-26
| | |
| * | Change too short password to default, but short of 1 letterSzczepan Zalega2020-02-26
| | |
| * | Correct result of successful execution for bootloader to DISCONNECTEDSzczepan Zalega2020-02-26
| | |
| * | Add tests for Pro`s bootloaderSzczepan Zalega2020-02-26
|/ /
* | Add Nitrokey FIDO2 rule for the legacy systemsSzczepan Zalega2019-12-09
| | | | | | | | Related: https://github.com/Nitrokey/nitrokey-fido2-firmware/issues/29
* | UDEV rule for FIDO2jans232019-10-11
|/
* Merge branch 'pr_161'Szczepan Zalega2019-08-12
|\ | | | | | | | | | | Fix for CMAKE's version getter Fixes #161
| * Make `PROJECT_VERSION_GIT` fallback more robustDavid Seifert2019-08-10
|/ | | | | | * The previous check for `PROJECT_VERSION_GIT_RETURN_CODE` was fragile and did not check specifically that the return code is *exactly* 0.
* Add numbers to generated OTP slot namesSzczepan Zalega2019-06-25
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Cleanup: replace magic numbers. Correct copyright dates.v3.5Szczepan Zalega2019-06-24
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add simple CLI tool to enable firmware update mode on NK StorageSzczepan Zalega2019-06-24
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'otp_tests'Szczepan Zalega2019-06-22
|\ | | | | | | | | | | Add OTP tests: - complete writing and reading codes - test edge slots of TOTP and HOTP
| * Collect received OTP codes for all slots and print themSzczepan Zalega2019-06-22
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add another test for reading and writing OTP slotsSzczepan Zalega2019-06-22
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Test writing edge OTP slotsSzczepan Zalega2019-06-22
|/ | | | | | | This tests encountered bug in the Storage v0.54 RC. Write either TOTP15 or HOTP1, and try to access the other. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'backward_compatibility'pre-v3.5-3Szczepan Zalega2019-06-19
|\ | | | | | | | | Do the HOTP slot counter conversion from ASCII to binary only for Storage v0.53 and lower. Storage v0.54 returns binary counter.
| * Add HOTP counter testsSzczepan Zalega2019-06-19
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add function reading HOTP slot detailsSzczepan Zalega2019-06-19
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: correct the model gettingSzczepan Zalega2019-06-18
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Extend TOTP time test up to 64 bitsSzczepan Zalega2019-06-14
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Correct binary counter specifierSzczepan Zalega2019-06-14
| | | | | | | Makes the 64bit OTP tests passing on the Pro v0.8+ (instead of being skipped). Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'bootloader_pro'Szczepan Zalega2019-06-13
|\ | | | | | | Add bootloader support for the Nitrokey Pro v0.11+
| * Use strnlen for field copiesSzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>