Lines Matching refs:flags
85 static int add_to_keyring(const char *keyname, AskPasswordFlags flags, char **passwords) { in add_to_keyring() argument
94 if (!FLAGS_SET(flags, ASK_PASSWORD_PUSH_CACHE)) in add_to_keyring()
132 static int add_to_keyring_and_log(const char *keyname, AskPasswordFlags flags, char **passwords) { in add_to_keyring_and_log() argument
137 r = add_to_keyring(keyname, flags, passwords); in add_to_keyring_and_log()
144 static int ask_password_keyring(const char *keyname, AskPasswordFlags flags, char ***ret) { in ask_password_keyring() argument
152 if (!FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED)) in ask_password_keyring()
206 AskPasswordFlags flags, in ask_password_plymouth() argument
246 if (FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED)) { in ask_password_plymouth()
309 if (FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED)) { in ask_password_plymouth()
324 flags &= ~ASK_PASSWORD_ACCEPT_CACHED; in ask_password_plymouth()
383 AskPasswordFlags flags, in ask_password_tty() argument
404 if (FLAGS_SET(flags, ASK_PASSWORD_NO_TTY)) in ask_password_tty()
410 if (!FLAGS_SET(flags, ASK_PASSWORD_HIDE_EMOJI) && emoji_enabled()) in ask_password_tty()
413 if (flag_file || (FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED) && keyname)) { in ask_password_tty()
422 if (FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED) && keyname) { in ask_password_tty()
423 r = ask_password_keyring(keyname, flags, ret); in ask_password_tty()
441 if (FLAGS_SET(flags, ASK_PASSWORD_CONSOLE_COLOR)) in ask_password_tty()
452 … if (!FLAGS_SET(flags, ASK_PASSWORD_SILENT) && !FLAGS_SET(flags, ASK_PASSWORD_ECHO)) { in ask_password_tty()
513 r = ask_password_keyring(keyname, flags, ret); in ask_password_tty()
553 if (!FLAGS_SET(flags, ASK_PASSWORD_SILENT)) in ask_password_tty()
564 if (!FLAGS_SET(flags, ASK_PASSWORD_SILENT)) in ask_password_tty()
588 } else if (!dirty && !FLAGS_SET(flags, ASK_PASSWORD_SILENT)) { in ask_password_tty()
590 flags |= ASK_PASSWORD_SILENT; in ask_password_tty()
601 } else if (c == '\t' && !FLAGS_SET(flags, ASK_PASSWORD_SILENT)) { in ask_password_tty()
604 flags |= ASK_PASSWORD_SILENT; in ask_password_tty()
620 if (!FLAGS_SET(flags, ASK_PASSWORD_SILENT) && ttyfd >= 0) { in ask_password_tty()
624 if (FLAGS_SET(flags, ASK_PASSWORD_ECHO)) in ask_password_tty()
652 (void) add_to_keyring_and_log(keyname, flags, l); in ask_password_tty()
706 AskPasswordFlags flags, in ask_password_agent() argument
728 if (FLAGS_SET(flags, ASK_PASSWORD_NO_AGENT)) in ask_password_agent()
737 if (FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED) && keyname) { in ask_password_agent()
738 r = ask_password_keyring(keyname, flags, ret); in ask_password_agent()
792 FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED), in ask_password_agent()
793 FLAGS_SET(flags, ASK_PASSWORD_ECHO), in ask_password_agent()
795 FLAGS_SET(flags, ASK_PASSWORD_SILENT)); in ask_password_agent()
860 r = ask_password_keyring(keyname, flags, ret); in ask_password_agent()
946 (void) add_to_keyring_and_log(keyname, flags, l); in ask_password_agent()
964 static int ask_password_credential(const char *credential_name, AskPasswordFlags flags, char ***ret… in ask_password_credential() argument
992 AskPasswordFlags flags, in ask_password_auto() argument
999 if (!FLAGS_SET(flags, ASK_PASSWORD_NO_CREDENTIAL) && credential_name) { in ask_password_auto()
1000 r = ask_password_credential(credential_name, flags, ret); in ask_password_auto()
1005 if (FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED) && in ask_password_auto()
1007 (FLAGS_SET(flags, ASK_PASSWORD_NO_TTY) || !isatty(STDIN_FILENO)) && in ask_password_auto()
1008 FLAGS_SET(flags, ASK_PASSWORD_NO_AGENT)) { in ask_password_auto()
1009 r = ask_password_keyring(key_name, flags, ret); in ask_password_auto()
1014 if (!FLAGS_SET(flags, ASK_PASSWORD_NO_TTY) && isatty(STDIN_FILENO)) in ask_password_auto()
1015 return ask_password_tty(-1, message, key_name, until, flags, NULL, ret); in ask_password_auto()
1017 if (!FLAGS_SET(flags, ASK_PASSWORD_NO_AGENT)) in ask_password_auto()
1018 return ask_password_agent(message, icon, id, key_name, until, flags, ret); in ask_password_auto()