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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user