]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptenroll: show which devices support "hmac secret"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 Dec 2024 15:30:04 +0000 (16:30 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Dec 2024 09:58:58 +0000 (10:58 +0100)
commit7b2ebd7040d655d2e16c5b2b26533ec330f1b60b
tree4e7a6cc1fa690663cca288bb5e4ddeff23eceb79
parent9e5d0ed65f22e8990d2301e268b5d8b969d4f2eb
cryptenroll: show which devices support "hmac secret"

We'd silently skip devices which don't have the feature in the list.
This looked wrong esp. if no devices were suitable. Instead, list them
and show which ones are usable.

$ build/systemd-cryptenroll --fido2-device=list
PATH          MANUFACTURER PRODUCT                HMAC SECRET
/dev/hidraw7  Yubico       YubiKey OTP+FIDO+CCID  ✓
/dev/hidraw10 Yubico       Security Key by Yubico ✗
/dev/hidraw5  Yubico       Security Key by Yubico ✗
/dev/hidraw9  Yubico       Yubikey 4 OTP+U2F+CCID ✗
man/systemd-cryptenroll.xml
src/shared/libfido2-util.c