aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAge
* Allow to execute client-supplied function on each retry and cancel with itwip-retry_functionSzczepan Zalega2017-12-11
| | | | 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>
* Fix compilation warning on OSXSzczepan Zalega2017-03-31
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Fix compilation warningsSzczepan Zalega2017-03-31
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Allow to directly choose loglevelSzczepan Zalega2017-03-29
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Allow to change device commands delays runtimeSzczepan Zalega2017-03-29
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Change log's date-time format. Code reformat.Szczepan Zalega2017-03-29
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use separate exception for wrong receiving packet's CRCSzczepan Zalega2017-03-27
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Dynamically increase delay between retries on busy statusSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use own exception types instead of general runtime_errorSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Allow to check is current device visible to the OSSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Add TODO commentSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Handle enabling update mode on Storage deviceSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Make device-level reconnect on problem with sendingSzczepan Zalega2017-03-11
| | | | | | | Make it 3 times before throwing exception Call hid_exit on last device disconnection Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Reorder includesSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Count lifetime instances of device communication exceptionSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* CommentsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use nullptr instead of NULLSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Build debug-log-free library for increased securitySzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* CommentsSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Feature check for 320 bits OTP secretSzczepan Zalega2017-03-11
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>