summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Security: exchange strdup with strndupSzczepan Zalega2017-04-14
| | | | | | Keep build directory (removed in earlier commit) Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Translate HOTP counter for StorageSzczepan Zalega2017-04-14
| | | | | | | | Storage returns its HOTP counter as string in readslot command. This adds translating it from string to ULL. Fixes #59 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>
* Do not abort compilation at all on OSXSzczepan Zalega2017-04-04
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Use correct format letterSzczepan Zalega2017-04-03
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Do not abort compilation on warnings in hid.c on OSXSzczepan Zalega2017-04-03
| | | | 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>
* Do not fail compilation on testsSzczepan Zalega2017-03-31
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Do not check for warnings on 3rd-party code - hidapiSzczepan 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>
* Do not allow to set delays lower than 20 msSzczepan Zalega2017-03-31
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Show warnings during the compilation and treat warnings as errorSzczepan 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>
* Use proper frameworks with cmake and OSXSzczepan Zalega2017-03-20
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'osx_build'Szczepan Zalega2017-03-16
|\
| * Add function commentSzczepan Zalega2017-03-14
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Do not link hidapi under OSXSzczepan Zalega2017-03-14
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Use hidapi patched for macSzczepan Zalega2017-03-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Never call hid exit on OSXSzczepan Zalega2017-03-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* | Documentation updateSzczepan Zalega2017-03-16
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'libnitrokey_3'Szczepan Zalega2017-03-11
|\
| * Cleanup modulesSzczepan Zalega2017-03-11
| | | | | | | | | | | | | | Remove unused PyBind11 Update hidapi git path Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Fix compilation warningsSzczepan Zalega2017-03-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add tested Travis build configuration. Set proper hidapi url.Szczepan Zalega2017-03-11
| | | | | | | | 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>
| * Set turbo modeSzczepan 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>
| * Check for null device reference in case of failed reconnectionSzczepan Zalega2017-03-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Correct comments and fix firmware version requirementsSzczepan Zalega2017-03-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Authenticate before factory reset so the command will not timeoutSzczepan Zalega2017-03-11
| | | | | | | | | | | | To investigate later Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Update encrypted volume test. Use random password.Szczepan Zalega2017-03-11
| | | | | | | | | | | | Randomizing password to ensure correctness of setting up hidden volume in current iteration Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Prefer to use log-enabled library in testsSzczepan Zalega2017-03-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Remove obsolete commentsSzczepan Zalega2017-03-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Do reconnect also on receiving failureSzczepan Zalega2017-03-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Remove checking for mutex being lockedSzczepan 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>
| * Log execution of connect functionSzczepan Zalega2017-03-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Comment: use clang with TSANSzczepan 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>