fwupd/plugins/nitrokey
Richard Hughes b6f79556f1 Use a SHA1 hash for the internal DeviceID
It's actually less scary to see a SHA1 hash than it is to see a path like
/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.2. It's also way easier to
copy and paste into the various fwupdmgr command that require a device ID and
also means we can match a partial prefix much like git allows.

If we also move to a model where plugins can be changed during different stages
of the update (e.g. during detach) then the device might change connection type
and then the sysfs path not only becomes difficult to paste, but incorrect.

Session software doesn't care about the format of the device ID (it is supposed
to be an implementation detail) and so there's no API or ABI break here. A few
plugins also needed to be ported, but nothing too worrying.
2017-11-16 07:18:36 +00:00
..
fu-nitrokey-common.c Add a nitrokey plugin 2017-11-13 16:25:46 +00:00
fu-nitrokey-common.h Add a nitrokey plugin 2017-11-13 16:25:46 +00:00
fu-nitrokey-device.c Use a SHA1 hash for the internal DeviceID 2017-11-16 07:18:36 +00:00
fu-nitrokey-device.h Add a nitrokey plugin 2017-11-13 16:25:46 +00:00
fu-plugin-nitrokey.c Add a nitrokey plugin 2017-11-13 16:25:46 +00:00
fu-self-test.c Add a nitrokey plugin 2017-11-13 16:25:46 +00:00
lsusb.txt Add a nitrokey plugin 2017-11-13 16:25:46 +00:00
meson.build Add a nitrokey plugin 2017-11-13 16:25:46 +00:00
README.md Add a nitrokey plugin 2017-11-13 16:25:46 +00:00

Nitrokey Support

Introduction

This plugin is used to get the correct version number on Nitrokey storage devices. These devices have updatable firmware but so far no updates are available from the vendor.

The device is switched to a DFU bootloader only when the secret firmware pin is entered into the nitrokey-app tool. This cannot be automated.