summaryrefslogtreecommitdiffstats
path: root/src/cryptenroll/cryptenroll-tpm2.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-11-07 10:30:34 +0100
committerLennart Poettering <lennart@poettering.net>2025-01-02 16:38:12 +0100
commit72068d9d2500e0ea127994f26a5dcadf5666b65e (patch)
treedaffbc9ae766079403dfecca6178045869610fd7 /src/cryptenroll/cryptenroll-tpm2.c
parentask-password-api: move 'flag_file' from function parameter into AskPasswordRe... (diff)
downloadsystemd-72068d9d2500e0ea127994f26a5dcadf5666b65e.tar.xz
systemd-72068d9d2500e0ea127994f26a5dcadf5666b65e.zip
ask-password-api: move tty_fd into AskPasswordRequest structure, too
Diffstat (limited to 'src/cryptenroll/cryptenroll-tpm2.c')
-rw-r--r--src/cryptenroll/cryptenroll-tpm2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptenroll/cryptenroll-tpm2.c b/src/cryptenroll/cryptenroll-tpm2.c
index ca163ef3c2..a5750427dc 100644
--- a/src/cryptenroll/cryptenroll-tpm2.c
+++ b/src/cryptenroll/cryptenroll-tpm2.c
@@ -119,6 +119,7 @@ static int get_pin(char **ret_pin_str, TPM2Flags *ret_flags) {
SYNTHETIC_ERRNO(ENOKEY), "Too many attempts, giving up.");
AskPasswordRequest req = {
+ .tty_fd = -EBADF,
.message = "Please enter TPM2 PIN:",
.icon = "drive-harddisk",
.keyring = "tpm2-pin",