summaryrefslogtreecommitdiffstats
path: root/src/cryptenroll/cryptenroll-fido2.c
diff options
context:
space:
mode:
authorGibeom Gwon <gb.gwon@stackframe.dev>2021-12-03 07:10:50 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-03 08:12:30 +0100
commit4b9aa29bc9ded35147f9fa77f77e13c3c6fa7fcf (patch)
tree119f38a3082bab9fc581083a6740ec10880bde58 /src/cryptenroll/cryptenroll-fido2.c
parentMerge pull request #21599 from loongarch64/dev-syscalls (diff)
downloadsystemd-4b9aa29bc9ded35147f9fa77f77e13c3c6fa7fcf.tar.xz
systemd-4b9aa29bc9ded35147f9fa77f77e13c3c6fa7fcf.zip
cryptenroll: fix wrong error messages
PKCS#11 -> FIDO2 in cryptenroll-fido2.c
Diffstat (limited to '')
-rw-r--r--src/cryptenroll/cryptenroll-fido2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptenroll/cryptenroll-fido2.c b/src/cryptenroll/cryptenroll-fido2.c
index dd10b31825..b519b8651b 100644
--- a/src/cryptenroll/cryptenroll-fido2.c
+++ b/src/cryptenroll/cryptenroll-fido2.c
@@ -67,7 +67,7 @@ int enroll_fido2(
base64_encoded,
strlen(base64_encoded));
if (keyslot < 0)
- return log_error_errno(keyslot, "Failed to add new PKCS#11 key to %s: %m", node);
+ return log_error_errno(keyslot, "Failed to add new FIDO2 key to %s: %m", node);
if (asprintf(&keyslot_as_string, "%i", keyslot) < 0)
return log_oom();
@@ -83,7 +83,7 @@ int enroll_fido2(
JSON_BUILD_PAIR("fido2-up-required", JSON_BUILD_BOOLEAN(FLAGS_SET(lock_with, FIDO2ENROLL_UP))),
JSON_BUILD_PAIR("fido2-uv-required", JSON_BUILD_BOOLEAN(FLAGS_SET(lock_with, FIDO2ENROLL_UV)))));
if (r < 0)
- return log_error_errno(r, "Failed to prepare PKCS#11 JSON token object: %m");
+ return log_error_errno(r, "Failed to prepare FIDO2 JSON token object: %m");
r = cryptsetup_add_token_json(cd, v);
if (r < 0)