]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/tty-ask-password-agent/tty-ask-password-agent.c
tty-ask-password: Split out password sending 2495/head
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Wed, 20 Jan 2016 17:46:51 +0000 (18:46 +0100)
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Wed, 3 Feb 2016 21:52:26 +0000 (22:52 +0100)
commitbbada6d7b5825ad62d093113c6447bedd14019f2
tree89cc0f89fab219833325fa8eb388c966d8e4b6bb
parent145c990fc90277f3a89475db33bcca2af091458f
tty-ask-password: Split out password sending

This is a piece of refactoring I've done while looking for a solution to bug #2378.
It separates the password sending from `parse_password`, which only needs to know
about the socket path and the list of passwords to send.

As a caveat, the `ask_password_tty` path needs to construct a one-password strv, too.
src/tty-ask-password-agent/tty-ask-password-agent.c