aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix regex in unittest for pre-releases and git checkoutsDavid Seifert2019-04-26
|
* Merge branch 'pr_156'Szczepan Zalega2019-04-25
|\ | | | | | | | | | | Correct package name Closes #156
| * Find Catch 2.5.0 via pkg-configDavid Seifert2019-04-22
|/
* Correct version header in C APISzczepan Zalega2019-03-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Bump version to v3.5Szczepan Zalega2019-03-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch '154-storage54'Szczepan Zalega2019-03-19
|\ | | | | | | | | | | | | | | | | | | Add support for the Storage v0.54: - use binary OTP counter - handle 320 bit OTP secret - enable tests for these features Fixes #153 Fixes #154
| * Unlock 64 bit tests for StorageSzczepan Zalega2019-03-19
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Storage v0.54: activate tests for OTP320 and binary counterSzczepan Zalega2019-03-19
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Storage v0.54: enable 320 bit OTP secret and auth commandsSzczepan Zalega2019-03-19
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch '136-fido-u2f-rules-update'Szczepan Zalega2019-02-11
|\ | | | | | | | | | | Update Udev rules files Fixes #136
| * Consistency - for old style remove TAG attribute and add MODESzczepan Zalega2019-02-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Consistency - set Nitrokey U2F MODE=660 (instead of 664)Szczepan Zalega2019-02-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Update descriptionSzczepan Zalega2019-02-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * remove legacy plugdev groups tagalex-nitrokey2019-02-11
| |
| * outsource old rules to separate filealex-nitrokey2019-02-11
| |
| * Add MODE tag for FIDO U2Falex-nitrokey2019-02-11
| |
| * Add guards and harmonize old and new rulealex-nitrokey2019-02-11
| |
| * Add Nitrokey FIDO U2F entryalex-nitrokey2019-02-11
|/
* Merge branch 'pr_155'Szczepan Zalega2019-01-29
|\ | | | | | | | | | | | | | | | | | | | | Add Status structure, and a general command for using it as a result. Usable to limit calls to the device, when multiple status fields are required at given time. Tested on Nitrokey Pro v0.7 and v0.10. Run offline tests as well (C++ and Python). Fixes #155
| * Add .pytest_cache to .gitignoreRobin Krahl2019-01-29
| |
| * Replace NK_status with NK_get_status_as_string in unit testsRobin Krahl2019-01-29
| |
| * Add unit test for NK_get_statusRobin Krahl2019-01-29
| |
| * Replace NK_status with NK_get_status_as_stringRobin Krahl2019-01-29
| | | | | | | | | | For naming consistency, this patch adds the NK_get_status_as_string function to replace NK_status and marks NK_status as deprecated.
| * Add NK_get_status function to get status structRobin Krahl2019-01-29
|/ | | | | | | | | Currently, the C API provides access to the device status using the NK_get_{major,minor}_firmware_version, NK_device_serial_number and NK_read_config functions. Each function sends a command to the device, although the data is returned in a single response. This patch adds a NK_status struct and a NK_get_status function that provide access to this data with a single command.
* Merge branch 'pr_151'Szczepan Zalega2019-01-26
|\ | | | | | | | | | | | | Add firmware export stress tests for Fedora 29 and macOS 10.13+ Tested on Nitrokey Storage v0.53 Fixes #151
| * Correct the skip message for other OS than FedoraSzczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Detect UV's block device on Fedora automaticallySzczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Additional check and device/mount printSzczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Small correction for macOS 10.13.6Szczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Stress test for firmware export feature on macOSMartin Müller2019-01-26
| |
| * Add FIXME comments. Make the skip() method descriptive.Szczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Stress test for firmware export featureSzczepan Zalega2019-01-26
|/ | | | | | | | Export the firmware multiple times, and test its size. Hardcoded device set to /dev/sde1 Related: https://github.com/Nitrokey/nitrokey-app/issues/399 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'pr_148'Szczepan Zalega2019-01-24
|\ | | | | | | | | | | Generate documentation for C API using Doxygen Fixes #148
| * Update readme for `make doc`feature/doxygenRobin Krahl2019-01-16
| |
| * Add \mainpage to the C API documentationRobin Krahl2019-01-16
| | | | | | | | | | The main page contains a reference to the header containing all functions of the C API and a short example of how to use it.
| * Add a \file doc comment to libnitrokeyRobin Krahl2019-01-16
| | | | | | | | | | | | Doxygen does not include top-level functions unless the file is documented. Therefore we have to add a \file doc comment so that the functions show up in the Doxygen output.
| * Add a doc target that generates C API documentationRobin Krahl2019-01-16
| | | | | | | | | | | | | | Doxygen is used generate the C API documentation. The Doxygen configuration is stored in the Doxygen.in file (that is processed by CMake). To generate the documentation, run make doc in the build directory.
* | Merge branch 'pr_149'Szczepan Zalega2019-01-24
|\ \ | | | | | | | | | | | | | | | Return uint8_t from version getters Fixes #149
| * | Return firmware version parts as uint8_t instead of intfix/get-firmware-versionRobin Krahl2019-01-17
| | | | | | | | | | | | | | | | | | | | | | | | The firmware version parts returned by the Nitrokey devices are uint8_t values. This is part of the public API as part of the NK_storage_status struct. For consistency with this API, this patch changes the functions NK_get_major_firmware_version and NK_get_minor_firmware_version to return uint8_t instead of int.
* | | Merge branch 'pr_152'Szczepan Zalega2019-01-24
|\ \ \ | |/ / |/| | | | | | | | | | | Export PWS slot count in C API Fixes #152
| * | Export PWS slot count in C APIpws-slot-countRobin Krahl2019-01-24
|/ / | | | | | | | | | | | | The C++ API already defines the number of slots in device_proto.h. This patch adds it to the C API. It is especially important to have this constant in the C API as it is the length of the array returned by NK_get_password_safe_slot_status.
* | Merge branch 'pr_146'Szczepan Zalega2019-01-15
|\ \ | | | | | | | | | | | | | | | Correct README - links to header files Fixes #146
| * | Correct other links as wellSzczepan Zalega2019-01-15
| | | | | | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * | Fix links to header files in READMEMartin Müller2019-01-15
|/ /
* | Merge branch 'contributions'Szczepan Zalega2019-01-15
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Multiple PR's merged and tested as a whole Platform: Pro v0.7 Storage v0.53 Fedora 29 Run Python tests
| * \ Merge branch 'pr_138' into contributionsSzczepan Zalega2019-01-15
| |\ \ | | | | | | | | | | | | | | | | | | | | Improve support for multiple devices Fixes #138
| | * | Add test for NK_list_devices to test_multiple_deviceswip/multiple-devicesRobin Krahl2019-01-13
| | | | | | | | | | | | | | | | | | | | As we cannot test this function properly in Python (due to missing struct definitions), we test it in the C++ test suite.
| | * | Add test for NK_connect_with_pathRobin Krahl2019-01-13
| | | | | | | | | | | | | | | | | | | | As we cannot read the output of NK_list_devices in the Python tests at the moment, this test case uses NK_list_devices_by_cpuID instead.
| | * | Add simple test for NK_list_devicesRobin Krahl2019-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, I cannot test more as the current ffi implementation does not allow me to import struct definitions. Without the definition for the NK_device_info struct, I cannot inspect the result of the NK_list_devices function.
| | * | Add NK_device_info, NK_list_devices and NK_free_device_infoRobin Krahl2019-01-13
| | | | | | | | | | | | | | | | | | | | | | | | NK_list_devices corresponds to NitrokeyManager::list_devices. It returns a linked list of NK_device_info, which has to be freed using the NK_free_device_info function.