diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-02-19 17:44:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-02-20 16:50:00 +0100 |
commit | a96c284f10dd28ebad99d52bd72e00f3cb93bfaa (patch) | |
tree | 127b5113eb4f45afe7ed412a7362d734862d8cdf /src/home | |
parent | cryptenroll: use a different credential for new new PIN (diff) | |
download | systemd-a96c284f10dd28ebad99d52bd72e00f3cb93bfaa.tar.xz systemd-a96c284f10dd28ebad99d52bd72e00f3cb93bfaa.zip |
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.
Diffstat (limited to 'src/home')
-rw-r--r-- | src/home/homectl-pkcs11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homectl-pkcs11.c b/src/home/homectl-pkcs11.c index 5c54ec016e..b9ee8acc4c 100644 --- a/src/home/homectl-pkcs11.c +++ b/src/home/homectl-pkcs11.c @@ -153,7 +153,7 @@ int identity_add_pkcs11_key_data(JsonVariant **v, const char *uri) { assert(v); - r = pkcs11_acquire_public_key(uri, "home directory operation", "user-home", &pkey, &pin); + r = pkcs11_acquire_public_key(uri, "home directory operation", "user-home", "home.token-pin", &pkey, &pin); if (r < 0) return r; |