pkcs11-util: clean up credential handling for PKCS11 PIN

similar as the previous commit, let's clean up the credential name we
use. Use home.token-pin in case of homectl, and cryptenroll.pkcs11-pin
in case of cryptenroll.
This commit is contained in:
Lennart Poettering
2024-02-20 16:50:00 +01:00
parent 7252be6083
commit a96c284f10
4 changed files with 18 additions and 15 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ int enroll_pkcs11(
assert_se(node = crypt_get_device_name(cd));
r = pkcs11_acquire_public_key(uri, "volume enrollment operation", "drive-harddisk", &pkey, NULL);
r = pkcs11_acquire_public_key(uri, "volume enrollment operation", "drive-harddisk", "cryptenroll.pkcs11-pin", &pkey, NULL);
if (r < 0)
return r;