From: Lennart Poettering Date: Mon, 19 Feb 2024 16:03:49 +0000 (+0100) Subject: pcrlock: normalize credential name for TPM2 PIN X-Git-Tag: v256-rc1~797^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09eed3bf8ceab1e5f3f062e53f2ce9f5d7d61db6;p=thirdparty%2Fsystemd.git pcrlock: normalize credential name for TPM2 PIN 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. --- diff --git a/src/pcrlock/pcrlock.c b/src/pcrlock/pcrlock.c index e1f25b62d93..e70c44c675c 100644 --- a/src/pcrlock/pcrlock.c +++ b/src/pcrlock/pcrlock.c @@ -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(