diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-11-07 10:30:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2025-01-02 16:38:12 +0100 |
commit | 72068d9d2500e0ea127994f26a5dcadf5666b65e (patch) | |
tree | daffbc9ae766079403dfecca6178045869610fd7 /src/cryptenroll/cryptenroll-tpm2.c | |
parent | ask-password-api: move 'flag_file' from function parameter into AskPasswordRe... (diff) | |
download | systemd-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.c | 1 |
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", |