]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/home/homectl-fido2.c
cryptenroll: handle FIDO2 tokens gracefully that lack requested features
authorLennart Poettering <lennart@poettering.net>
Thu, 27 May 2021 16:47:48 +0000 (18:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 May 2021 14:36:25 +0000 (16:36 +0200)
commit0735ed950a8a8c476dc7760eb294e3048a253369
treecd428c03683a5241be69fce47ed317dbc6fe70e1
parent304e637c88aec54bec8a741605b05b208b95a11a
cryptenroll: handle FIDO2 tokens gracefully that lack requested features

Let's try to handle keys gracefully that do not implement all features
we ask for: simply turn the feature off, and continue.

This is in particular relevant since we enroll with PIN and UP by
default, and on devices that don't support that we should just work.

Replaces: #18509
src/cryptenroll/cryptenroll-fido2.c
src/home/homectl-fido2.c
src/shared/libfido2-util.c
src/shared/libfido2-util.h