Skip to content

test_HOTP fails for Nitrokey Pro: Unknown Command Authorize #107

@robinkrahl

Description

@robinkrahl

With the current master (f9f8958), the test_HOTP test fails for my Nitrokey Pro:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_HOTP is a Catch v2.1.1 host application.
Run with -? for options

-------------------------------------------------------------------------------
Test HOTP codes according to RFC
-------------------------------------------------------------------------------
/home/robin/reps/libnitrokey/unittest/test_HOTP.cc:57
...............................................................................

/home/robin/reps/libnitrokey/unittest/test_HOTP.cc:57: FAILED:
  {Unknown expression after the reported line}
due to unexpected exception with message:
  Command execution has failed on device

===============================================================================
test cases: 2 | 1 passed | 1 failed
assertions: 5 | 4 passed | 1 failed

Relevant log output:

[Thu Apr  5 11:15:41 2018][DEBUG_L1]	=> AUTHORIZE
[Thu Apr  5 11:15:41 2018][DEBUG_L1]	<= AUTHORIZE 0 0
[Thu Apr  5 11:15:41 2018][DEBUG]	Incoming HID packet:
[Thu Apr  5 11:15:41 2018][DEBUG]	Device status:	0 OK
Command ID:	AUTHORIZE hex: 8
Last command CRC:	3d2e8891
Last command status:	9 STICK10::COMMAND_STATUS::UNKNOWN_COMMAND
CRC:	39301db5
Payload:
Empty Payload.
[Thu Apr  5 11:15:41 2018][DEBUG_L1]	Throw: CommandFailedException 9
[Thu Apr  5 11:15:41 2018][DEBUG]	CommandFailedException, status: 9
[Thu Apr  5 11:15:41 2018][DEBUG_L1]	Disconnection: handle already freed: 0 ()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions