summaryrefslogtreecommitdiff
path: root/.builds/archlinux-use-system-lib.yml
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-15 13:19:13 +0100
committerRobin Krahl <robin.krahl@ireas.org>2020-01-15 13:19:13 +0100
commitc472c53d6ae8a80cc18659006f3df5fbcace7140 (patch)
tree5c09d43e98946bb1aa1340f773044e5e9f3eb46f /.builds/archlinux-use-system-lib.yml
parent8ef4e3904688b7050d3ce6b876ceef3d60ebcce8 (diff)
downloadnitrokey-rs-c472c53d6ae8a80cc18659006f3df5fbcace7140.tar.gz
nitrokey-rs-c472c53d6ae8a80cc18659006f3df5fbcace7140.tar.bz2
Fix serial number for older Nitrokey Pro in list_devices
Previously, we assumed that the serial number returned by hidapi contains the Nitrokey serial number as the least significant bytes. As disussed here [0], this is not true for Nitrokey Pro devices with firmware version 0.8 or older: They write the serial number to the most significant bytes instead. This patch update the get_hidapi_serial_number function so that list_devices now returns the correctly formatted and truncated serial number for all Nitrokey Pro devices. It also makes sure that the serial number is lowercase to be consistent with libnitrokey’s formatting.
Diffstat (limited to '.builds/archlinux-use-system-lib.yml')
0 files changed, 0 insertions, 0 deletions