Add sudo_warn_set_conversation() to specify a conversation function

to use for warn/fatal.  If no conversation function is specified,
the standard error will be used.  We now only need sudo_printf()
for things that use the parser.
This commit is contained in:
Todd C. Miller
2014-10-05 16:41:52 -06:00
parent 29be093646
commit bd99dcc028
12 changed files with 108 additions and 38 deletions

View File

@@ -101,7 +101,7 @@ extern struct plugin_container_list io_plugins;
int sudo_conversation(int num_msgs, const struct sudo_conv_message msgs[],
struct sudo_conv_reply replies[]);
int _sudo_printf(int msg_type, const char *fmt, ...);
int sudo_conversation_printf(int msg_type, const char *fmt, ...);
bool sudo_load_plugins(struct plugin_container *policy_plugin,
struct plugin_container_list *io_plugins);