aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge branch 'pr_101'Szczepan Zalega2018-03-13
|\ | | | | | | | | | | Fixed header path. Allow to override UDEV rules. Closes #101
| * Allow overriding of udev rules dirDavid Seifert2018-03-13
| |
| * Make unbundling easierDavid Seifert2018-03-13
|/
* Merge branch 'licenses_update'Szczepan Zalega2018-03-13
|\
| * Add missing licensesSzczepan Zalega2018-03-13
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'unencrypted_volume_pin_type'Szczepan Zalega2018-03-09
|\ | | | | | | | | Update C API with new command, determining the PIN type for unencrypted volume RO/RW state change.
| * C API wrapper for NK_set_unencrypted_volume_rorw_pin_type_userSzczepan Zalega2018-03-09
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'compilation_warnings'Szczepan Zalega2018-03-03
|\ | | | | | | Fix compilation warning with missing 'break'
| * Fix compilation warningSzczepan Zalega2018-03-03
|/ | | | | | Break was indeed missing this time. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'wip-multiple_devices'Szczepan Zalega2018-03-02
|\ | | | | | | | | Allow to use multiple devices, iteratively. Storage only.
| * Correct firmware version getting in Pro testsSzczepan Zalega2018-03-02
| | | | | | | | | | | | Done for Pro devices Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Minor cleanupSzczepan Zalega2018-03-01
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Increase buffer size for listing connected devices IDsSzczepan Zalega2018-03-01
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add documentation for C API / multiple devicesSzczepan Zalega2018-03-01
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Clean headersSzczepan Zalega2018-03-01
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add test's scenario descriptionsSzczepan Zalega2018-02-28
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add to device's ID USB path. Convert ID to hex.Szczepan Zalega2018-02-28
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Log current device IDSzczepan Zalega2018-02-28
| | | | | | | | | | | | | | | | Allow logger to set global prefix Used to indicate current device Store USB path when used to connection as well Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Python test running commands on all connected devicesSzczepan Zalega2018-02-28
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Return USB path as id, when device is running long operationSzczepan Zalega2018-02-28
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add tests for refreshed devices list and not refreshed in the loopSzczepan Zalega2018-02-28
| | | | | | | | | | | | Add it to CMake Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Disconnect all devices before enumerating and discovering ids. Add log.Szczepan Zalega2018-02-28
| | | | | | | | | | | | Disconnection allows rediscovering devices. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Show connection success/failure on DEBUG_L1Szczepan Zalega2018-02-28
| | | | | | | | | | | | Clarify disconnection log message Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add LOGD1 macroSzczepan Zalega2018-02-28
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Do not disconnect device on getting status failureSzczepan Zalega2018-02-28
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * List devices by unique SC:SD idSzczepan Zalega2018-02-28
| | | | | | | | | | | | | | Add C API and tests Add mutexes Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Initial support for multiple devices with C++ and testSzczepan Zalega2018-02-28
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'wip-support_storage_v0.51'Szczepan Zalega2018-02-23
|\ | | | | | | Support for functionality added in v0.49/v0.51
| * Handle getting firmware version internallySzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Tests: make sure encrypted volume is enabled before unlocking hidden volumeSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Tests: rename _admin related and skip not supported encrypted volume ro/rw testsSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Divide unencrypted volume ro/rw commands for backward compatibilitySzczepan Zalega2018-02-23
| | | | | | | | | | | | | | | | | | | | Unencrypted volume ro/rw: rename user_admin_pin -> admin_pin to be consistent with latest API. Update description. Document PIN requirements in C++ API Extract pin type function Add C API for separate unencrypted volume read write handling Use correct commands to set ro/rw mode of unencrypted volume Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add device status in logged CommandFailed throwSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Extend busy status descriptionSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Implement command for testing smartcard statusSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Do not run C_API tests if not connectedSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Allow to call CFFI loading function from Python consoleSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add tests for Encrypted volume ro/rw switchSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Correct variable name for unencrypted ro/rw switchSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * C API for Encrypted volume ro/rw switchSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Tests: set debug level from environment variable, show connected device ↵Szczepan Zalega2018-02-23
| | | | | | | | | | | | model and version Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Tests for unencrypted volume switching with Admin PINSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Unify unencrypted volume ro/rw switchingSzczepan Zalega2018-02-23
| | | | | | | | | | | | | | For 0.49 run new command, which needs Admin PIN For 0.48 and lower run old command Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Correct getting minor and major from firmware versionSzczepan Zalega2018-02-23
| | | | | | | | | | | | | | | | | | Add get_minor_firmware_version Correct get_major_firmware version (was returning minor instead) Name 3rd version field for test builds Use minor firmware version in tests Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Support execution of the 0.49 commandsSzczepan Zalega2018-02-23
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add new commands for Storage v0.49Szczepan Zalega2018-02-23
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'pr_94'Szczepan Zalega2018-02-12
|\ | | | | | | | | | | C99 compatibility - bool type support Closes #94
| * Include stdbool.h in NK_C_API.hRobin Krahl2018-02-12
| | | | | | | | | | | | | | NK_C_API.h uses the type bool although it is not defined in standard C. Since C99, the header stdbool.h provides this type, so this patch includes it in NK_C_API.h to make it valid C code. (Note that the API already required C99 for the "//"-style comments.)
* | Merge branch 'pr_96'Szczepan Zalega2018-02-12
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Changes in hex_string_to_byte - it could produce invalid results depending on value from byte after the buffer. Used in: write_HOTP_slot_authorize write_OTP_slot_no_authorize write_TOTP_slot_authorize Closes #96
| * Use strnlen to determine string lengthSzczepan Zalega2018-02-12
| | | | | | | | | | | | | | | | | | strnlen stops scanning after reaching big_string_size and returns last position in the searched string. If a string terminator is not found then the big_string_size is returned hence the modification of the later size-checking condition. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>