]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pcrlock: normalize credential name for TPM2 PIN
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2024 16:03:49 +0000 (17:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Feb 2024 15:50:00 +0000 (16:50 +0100)
Let's drop the "systemd-" prefix from the credential name. We do not
prefix credentials that way so far. Don't do so here either.

The name is not really API, it's not documented, hence change it now
where we still can.

src/pcrlock/pcrlock.c

index e1f25b62d93e90c3369647670fa5a3ef68d2d117..e70c44c675cd0a72ebf269eacb14d4482b2830e2 100644 (file)
@@ -4447,7 +4447,7 @@ static int make_policy(bool force, bool recovery_pin) {
                         AskPasswordRequest req = {
                                 .message = "Recovery PIN",
                                 .id = "pcrlock-recovery-pin",
-                                .credential = "systemd-pcrlock.recovery-pin",
+                                .credential = "pcrlock.recovery-pin",
                         };
 
                         r = ask_password_auto(