aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * 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>
| * Null-terminate string before calling strtoulRobin Krahl2018-02-12
|/ | | | | | | | hex_string_to_byte in misc.cc calls strtoul with a non-null-terminated string, causing a buffer over-read. This patch extends the buffer to always include a null character in the end. Fixes issue #95.
* Merge branch 'expose_firmware_update'Szczepan Zalega2018-02-01
|\
| * Add test for enabling firmware updateSzczepan Zalega2018-02-01
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Expose enabling firmware update in C APISzczepan Zalega2018-02-01
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'add_udev'Szczepan Zalega2018-01-31
|\
| * Add udev rules installation (QMake)Szczepan Zalega2018-01-30
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add QMake installation rulesSzczepan Zalega2018-01-30
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Install udev file (CMake)Szczepan Zalega2018-01-30
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'update_catch'Szczepan Zalega2018-01-29
|\ | | | | | | Closes #91
| * Fix bug with different data readSzczepan Zalega2018-01-29
| | | | | | | | | | | | Makes occasional fails Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Do initialization of hidden volume before test (once)Szczepan Zalega2018-01-29
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Fix Capture for Catch v2.0Szczepan Zalega2018-01-29
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Update Catch to v2.1.1Szczepan Zalega2018-01-29
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'pr_90'Szczepan Zalega2018-01-29
|\ | | | | | | Adding support for Catch2 if available in system