diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-02-09 11:09:24 -0700 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-02-09 11:09:24 -0700 |
commit | 9da20adb5981fd1bcee5a30111e2cfdd912dfcfa (patch) | |
tree | fa2773ebb340cdf9aba52a0d1778cc70841f5c3b /include | |
parent | 8b224153e29b3b3d0bff7aff73e8d6dcc797240b (diff) | |
download | sudo-9da20adb5981fd1bcee5a30111e2cfdd912dfcfa.tar.gz |
Add eventlog_mail() to send a log message via mail.
This is used by mail_parse_errors() to send multi-line messages.
Previously, the newlines would be escaped as control characters.
Diffstat (limited to 'include')
-rw-r--r-- | include/sudo_eventlog.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sudo_eventlog.h b/include/sudo_eventlog.h index 55feee5d2..0e30ec495 100644 --- a/include/sudo_eventlog.h +++ b/include/sudo_eventlog.h @@ -133,6 +133,7 @@ typedef bool (*eventlog_json_callback_t)(struct json_container *, void *); bool eventlog_accept(const struct eventlog *evlog, int flags, eventlog_json_callback_t info_cb, void *info); bool eventlog_exit(const struct eventlog *evlog, int flags); bool eventlog_alert(const struct eventlog *evlog, int flags, struct timespec *alert_time, const char *reason, const char *errstr); +bool eventlog_mail(const struct eventlog *evlog, int flags, struct timespec *event_time, const char *reason, const char *errstr, char * const extra[]); bool eventlog_reject(const struct eventlog *evlog, int flags, const char *reason, eventlog_json_callback_t info_cb, void *info); bool eventlog_store_json(struct json_container *jsonc, const struct eventlog *evlog); bool eventlog_store_sudo(int event_type, const struct eventlog *evlog, struct sudo_lbuf *lbuf); |