| Commit message (Collapse) | Author | Age | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
The CommandError::Unknown variant, which is used whenever a reported
error code is not known, makes it close to impossible to determine the
root cause of, say, a one-off error, because all information explaining
what went wrong is discarded.
With this change we adjust the Unknown variant to include the error
report. In addition, we introduce a new CommandError variant, Undefined,
that is used when no error code is available.
 | 
| | 
| 
| 
| 
| 
|  | 
This patch adds a test case that changes the PIN when calling
unlock_user_pin.  The previous test case only unlocked the current user
PIN.
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
This patch adds the force argument to the set_time method in the
ConfigureOtp trait that allows the user to choose whether jumps to the
past are allowed when updating the time.  It is implemented by using the
NK_totp_set_time_soft function.  Previously, jumps where unconditionally
allowed.
 | 
| | 
| 
| 
| 
| 
|  | 
It seems that with newer firmeware, the model string in the lsblk output
is Nitrokey_Storage instead of Nitrokey Storage.  Therefore this patch
replaces underscores with spaces to account for both versions.
 | 
| |  | 
 | 
| | 
| 
| 
| 
|  | 
This patch adds the function Device::get_model that returns the model of
the connected Nitrokey stick.
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Currently, the test-no-device feature is used for tests that expect no
Nitrokey to be connected.  Yet test-no-device is equivalent to not
test-pro and not test-storage.  Therefore, this patch removes the
test-no-device feature.
 | 
|   
  
  
  
  
   | 
Newer Rust versions support integration tests in a top-level tests
directory.  This patch refactors the existing unit tests into
integration tests.
 |