Yubico / python-fido2

Provides library functionality for FIDO 2.0, including communication with a device over USB.
BSD 2-Clause "Simplified" License
432 stars 109 forks source link

Linux: remove trailing zeroes from serial #115

Closed enrikb closed 3 years ago

enrikb commented 3 years ago

The changes of #113 left trailing zeroes in the serial number and product name on Linux.

The ioctl() for retrieving the attributes returns the string length on success. Use the returned value to retrieve strings of the correct length.

dainnilsson commented 3 years ago

Thanks, good catch!

dainnilsson commented 3 years ago

Thanks again!