2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Add SUDO_CONV_PROMPT_MASK define which corresponds to the "pwfeedback"

sudoers option.  Do not disable echo if TGP_ECHO is set.
This commit is contained in:
Todd C. Miller
2010-06-09 10:31:05 -04:00
parent 51f70f2040
commit a4a6620b24
8 changed files with 55 additions and 43 deletions

View File

@@ -34,10 +34,11 @@
/* Conversation function types and defines */
struct sudo_conv_message {
#define SUDO_CONV_PROMPT_ECHO_OFF 1
#define SUDO_CONV_PROMPT_ECHO_ON 2
#define SUDO_CONV_ERROR_MSG 3
#define SUDO_CONV_INFO_MSG 4
#define SUDO_CONV_PROMPT_ECHO_OFF 1 /* do not echo user input */
#define SUDO_CONV_PROMPT_ECHO_ON 2 /* echo user input */
#define SUDO_CONV_ERROR_MSG 3 /* error message */
#define SUDO_CONV_INFO_MSG 4 /* informational message */
#define SUDO_CONV_PROMPT_MASK 5 /* mask user input */
int msg_type;
int timeout;
const char *msg;