Add more password agent information

System Internals / systemd - David Härdeman [hardeman.nu] - 24 April 2014 02:23 UTC

Add an (optional) "Id" key in the password agent .ask files. The Id is supposed to be a simple string in ":" form which is used to provide more information on what the requested passphrase is to be used for (which e.g. allows an agent to only react to cryptsetup requests).

(v2: rebased, fixed indentation, escape name, use strappenda)

9fa1de9 Add more password agent information
src/ask-password/ask-password.c | 14 +++++++++++---
src/cryptsetup/cryptsetup.c | 14 ++++++++++++--
src/shared/ask-password-api.c | 9 +++++++--
src/shared/ask-password-api.h | 6 ++++--
4 files changed, 34 insertions(+), 9 deletions(-)

Upstream: github.com


  • Share