summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAge
* Make unbundling easierDavid Seifert2018-03-13
|
* Fix compilation warningSzczepan Zalega2018-03-03
| | | | | | Break was indeed missing this time. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Minor cleanupSzczepan Zalega2018-03-01
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Clean headersSzczepan Zalega2018-03-01
| | | | 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>
* Add LOGD1 macroSzczepan 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>
* Handle getting firmware version internallySzczepan 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>
* Correct variable name for unencrypted ro/rw switchSzczepan 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>
* Remove 'Created by sz'Szczepan Zalega2018-01-16
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Update license/copyright linesSzczepan Zalega2018-01-16
| | | | | | Remove redundant file Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Fix compilation warningSzczepan Zalega2017-10-21
| | | | | | Moved const to proper place Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Show proper device status codeSzczepan Zalega2017-10-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Log updateSzczepan Zalega2017-10-10
| | | | | | | | Show progress on busy retries as dots (.) Show warning when expected CRC is different than of received response Show busy retry stats only on delay change Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Translate properly Storage error on AES decoding failSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add DEBUG_L1 log messagesSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add DEBUG_L1 level and set it as default for Python testsSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Number exceptions for easy return codeSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Code reformatSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Skip checking packet's CRCSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Make additional retries for longer running commandsSzczepan Zalega2017-10-10
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'windows_MSVC2017' into OSX_merge_cleanedSzczepan Zalega2017-09-20
|\
| * Run compilation using Qt CreatorSzczepan Zalega2017-06-28
| |
| * Adjust code to make compilation under MSVC 2017Szczepan Zalega2017-06-28
| |
* | Set lower maximum between-sending delaySzczepan Zalega2017-09-20
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* | Decrease busy-delay countSzczepan Zalega2017-09-20
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* | Correct mutex placementSzczepan Zalega2017-09-20
| | | | | | | | | | | | Move mutex from template instantation to single compilation unit to make it work as desired Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* | Do not make longer waiting than 500ms on iterationSzczepan Zalega2017-09-20
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* | Show warning message about invalid incoming packet's CRCSzczepan Zalega2017-09-20
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* | Show more detailed status in debug logSzczepan Zalega2017-09-20
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Fix typo in logging macroSzczepan Zalega2017-05-13
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Log temporary password as hexdump instead of string representationSzczepan Zalega2017-05-13
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Log accepting responses with invalid CRCSzczepan Zalega2017-05-13
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Code refactoringSzczepan Zalega2017-05-13
| | | | | | | Remove doubled implementation Remove clutter from DEBUG log level Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Assume slot_names are volatile dataSzczepan Zalega2017-05-13
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Do not log volatile dataSzczepan Zalega2017-05-13
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Pack structures for NK Pro v0.8 commandsSzczepan Zalega2017-05-12
| | | | | | | Apparently the GCC "packed" command is skipped while compiling for Win, VS style ones works Fixes nitrokey-app#242 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Refactor log codeSzczepan Zalega2017-05-12
| | | | | | | Inverse log levels order. Allow to change logging level with int. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use own strndup implementation under WindowsSzczepan Zalega2017-04-25
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Handle print function in logger by functorSzczepan Zalega2017-04-07
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Return OTP codes as strings to make sure they are zero-filled properlySzczepan Zalega2017-04-03
| | | | | | | | | Adjust Python tests for new OTP codes return value Also remove manual 0-filling Fixes #57 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>