diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-01-06 00:47:13 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-01-06 00:51:36 +0100 |
commit | dd0cdcd2130699be8dde5dbadcf18cd9c00ef78f (patch) | |
tree | b556f5a012097260508edc01b71c6b14ee1a7e34 /unittest/test3.cc | |
parent | 1ba9938837a726580728c64bdd77d9676c98a020 (diff) | |
download | libnitrokey-dd0cdcd2130699be8dde5dbadcf18cd9c00ef78f.tar.gz libnitrokey-dd0cdcd2130699be8dde5dbadcf18cd9c00ef78f.tar.bz2 |
Also execute GET_DEVICE_STATUS in get_status for Storageget_status
As described in this issue [0], the GET_STATUS command does not work for
the Nitrokey Storage. Therefore, NitrokeyManager::get_status does not
work either. To fix this, we additionally execute the GET_DEVICE_STATUS
command if a Nitrokey Storage is detected to determine the serial number
and the firmware version. This also fixes the failing test
test_get_status that we introduced in the last patch.
Fixes #166.
[0] https://github.com/Nitrokey/nitrokey-storage-firmware/issues/96
Diffstat (limited to 'unittest/test3.cc')
0 files changed, 0 insertions, 0 deletions