diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-05-28 18:18:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-06-01 13:31:53 +0200 |
commit | 17e7561a973495992014dd102135f15eb808ae01 (patch) | |
tree | 2ee7ecb59582619e814b9662171f75374521d7ea /src/home/homectl-fido2.h | |
parent | 7dba77a67ed334d9336b89371b0601661609d277 (diff) | |
download | systemd-17e7561a973495992014dd102135f15eb808ae01.tar.gz |
homectl: store FIDO2 up/uv/clientPin fields in user records too
This catches up homed's FIDO2 support with cryptsetup's: we'll now store
the uv/up/clientPin configuration at enrollment in the user record JSON
data, and use it when authenticating with it.
This also adds explicit "uv" support: we'll only allow it to happen when
the client explicity said it's OK. This is then used by clients to print
a nice message suggesting "uv" has to take place before retrying
allowing it this time. This is modelled after the existing handling for
"up".
Diffstat (limited to 'src/home/homectl-fido2.h')
-rw-r--r-- | src/home/homectl-fido2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/home/homectl-fido2.h b/src/home/homectl-fido2.h index 7b8d9f60ac..5087069c3c 100644 --- a/src/home/homectl-fido2.h +++ b/src/home/homectl-fido2.h @@ -2,5 +2,6 @@ #pragma once #include "json.h" +#include "libfido2-util.h" -int identity_add_fido2_parameters(JsonVariant **v, const char *device); +int identity_add_fido2_parameters(JsonVariant **v, const char *device, Fido2EnrollFlags lock_with); |