aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
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 /CHANGELOG.md
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 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 54ee7d3..a52e043 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,10 @@ Copyright (C) 2019-2020 Robin Krahl <robin.krahl@ireas.org>
SPDX-License-Identifier: CC0-1.0
-->
+# Unreleased
+- Fix serial number formatting for Nitrokey Pro devices with firmware 0.8 or
+ older in the `list_devices` function.
+
# v0.5.0 (2020-01-14)
- List these libnitrokey functions as unsupported:
- `NK_change_firmware_password_pro`