diff options
author | MkfsSion <mkfssion@mkfssion.com> | 2022-04-17 15:42:49 +0800 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-04-22 20:22:40 +0200 |
commit | 70e723c000e46e2304e54f8063572d7fa0cdad46 (patch) | |
tree | 462cd67a414dc0bce495d01f405ddbe60c0731fa /src/cryptenroll/cryptenroll-fido2.h | |
parent | 6dc18ca5ddd996ffbf83b42cb45f23496fe38c9d (diff) | |
download | systemd-70e723c000e46e2304e54f8063572d7fa0cdad46.tar.gz |
cryptenroll,homectl: Introduce --fido2-credential-algorithm option
* Some authenticators(like Yubikey) support credential algorithm other than ES256
* Introduce a new option so users can make use of it
Diffstat (limited to 'src/cryptenroll/cryptenroll-fido2.h')
-rw-r--r-- | src/cryptenroll/cryptenroll-fido2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptenroll/cryptenroll-fido2.h b/src/cryptenroll/cryptenroll-fido2.h index b82a9ca842..11667afe9c 100644 --- a/src/cryptenroll/cryptenroll-fido2.h +++ b/src/cryptenroll/cryptenroll-fido2.h @@ -8,9 +8,9 @@ #include "log.h" #if HAVE_LIBFIDO2 -int enroll_fido2(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const char *device, Fido2EnrollFlags lock_with); +int enroll_fido2(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const char *device, Fido2EnrollFlags lock_with, int cred_alg); #else -static inline int enroll_fido2(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const char *device, Fido2EnrollFlags lock_with) { +static inline int enroll_fido2(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const char *device, Fido2EnrollFlags lock_with, int cred_alg) { return log_debug_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "FIDO2 key enrollment not supported."); } |