summaryrefslogtreecommitdiff
path: root/src/shared/ask-password-api.h
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2021-05-26 22:38:30 +0200
committerChristian Hesse <mail@eworm.de>2021-05-31 21:13:31 +0200
commite390c34d001187b8c18760e6ce33b72117c59ff1 (patch)
tree258c5b2e6f4b9910d5392bdc9e435d5820c94a17 /src/shared/ask-password-api.h
parent4858bc0d8453bfbadf46aecd291e886d2a8a2f20 (diff)
downloadsystemd-e390c34d001187b8c18760e6ce33b72117c59ff1.tar.gz
ask-password: allow to control lock and key emoji
Giving --echo to systemd-ask-password allows to echo the user input. There's nothing secret, so do not show a lock and key emoji by default. The behavior can be controlled with --emoji=yes|no|auto. The default is auto, which defaults to yes, unless --echo is given.
Diffstat (limited to 'src/shared/ask-password-api.h')
-rw-r--r--src/shared/ask-password-api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/ask-password-api.h b/src/shared/ask-password-api.h
index bb507b2e8d..7464e7f6de 100644
--- a/src/shared/ask-password-api.h
+++ b/src/shared/ask-password-api.h
@@ -14,6 +14,7 @@ typedef enum AskPasswordFlags {
ASK_PASSWORD_NO_AGENT = 1 << 5, /* never ask for password via agent */
ASK_PASSWORD_CONSOLE_COLOR = 1 << 6, /* Use color if /dev/console points to a console that supports color */
ASK_PASSWORD_NO_CREDENTIAL = 1 << 7, /* never use $CREDENTIALS_DIRECTORY data */
+ ASK_PASSWORD_HIDE_EMOJI = 1 << 8, /* hide the lock and key emoji */
} AskPasswordFlags;
int ask_password_tty(int tty_fd, const char *message, const char *key_name, usec_t until, AskPasswordFlags flags, const char *flag_file, char ***ret);