]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/firstboot/firstboot.c
ask-password: rework how we pass request meta info when asking passwords
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2024 15:35:12 +0000 (16:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Feb 2024 15:50:00 +0000 (16:50 +0100)
commitd08fd4c314f93e955586337e56ece4ce21c9c329
treea067f43094641ff96536155e8aa39e30d2951c53
parent8e94bb62a5c1309c56c57e0a505aae13a2ac5f4f
ask-password: rework how we pass request meta info when asking passwords

Rather than adding more and more parameters to ask_password_auto(), let's
pass a structure of the fields that often are constant anyway.

This way, callers can fill in what they need, and we take the filled
structure which we can pass around internally as one.

This is in particular preparation for adding one more field in one of
the next commits.
16 files changed:
src/ask-password/ask-password.c
src/cryptenroll/cryptenroll-password.c
src/cryptenroll/cryptenroll-tpm2.c
src/cryptsetup/cryptsetup.c
src/firstboot/firstboot.c
src/home/homectl.c
src/pcrlock/pcrlock.c
src/shared/ask-password-api.c
src/shared/ask-password-api.h
src/shared/cryptsetup-fido2.c
src/shared/cryptsetup-tpm2.c
src/shared/dissect-image.c
src/shared/libfido2-util.c
src/shared/pkcs11-util.c
src/test/test-ask-password-api.c
src/tty-ask-password-agent/tty-ask-password-agent.c