diff options
author | Gilles Chehade <gilles@poolp.org> | 2019-07-13 08:26:04 +0200 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2019-07-13 08:26:04 +0200 |
commit | fd809b970dfe6e913a95f3c1b0bf018d98f03e71 (patch) | |
tree | 5ef520b11ebaa7b3da38ed6c710ae8b1f9d0e493 /smtpd/lka.c | |
parent | Merge branch 'master' into portable (diff) | |
parent | sync (diff) | |
download | OpenSMTPD-fd809b970dfe6e913a95f3c1b0bf018d98f03e71.tar.xz OpenSMTPD-fd809b970dfe6e913a95f3c1b0bf018d98f03e71.zip |
Merge branch 'master' into portable
Diffstat (limited to 'smtpd/lka.c')
-rw-r--r-- | smtpd/lka.c | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/smtpd/lka.c b/smtpd/lka.c index 2a88fba2..2ea2c168 100644 --- a/smtpd/lka.c +++ b/smtpd/lka.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka.c,v 1.235 2019/06/27 05:14:49 martijn Exp $ */ +/* $OpenBSD: lka.c,v 1.238 2019/07/11 21:40:03 gilles Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -84,11 +84,14 @@ lka_imsg(struct mproc *p, struct imsg *imsg) struct timeval tv; const char *direction; const char *rdns; - const char *command, *response; + const char *command; + const char *response; const char *ciphers; const char *address; + const char *helomethod; const char *heloname; const char *filter_name; + const char *result; struct sockaddr_storage ss_src, ss_dest; int filter_response; int filter_phase; @@ -409,10 +412,11 @@ lka_imsg(struct mproc *p, struct imsg *imsg) m_get_string(&m, &direction); m_get_timeval(&m, &tv); m_get_id(&m, &reqid); + m_get_string(&m, &helomethod); m_get_string(&m, &heloname); m_end(&m); - lka_report_smtp_link_identify(direction, &tv, reqid, heloname); + lka_report_smtp_link_identify(direction, &tv, reqid, helomethod, heloname); return; case IMSG_REPORT_SMTP_LINK_TLS: @@ -426,6 +430,28 @@ lka_imsg(struct mproc *p, struct imsg *imsg) lka_report_smtp_link_tls(direction, &tv, reqid, ciphers); return; + case IMSG_REPORT_SMTP_LINK_RESET: + m_msg(&m, imsg); + m_get_string(&m, &direction); + m_get_timeval(&m, &tv); + m_get_id(&m, &reqid); + m_end(&m); + + lka_report_smtp_link_reset(direction, &tv, reqid); + return; + + case IMSG_REPORT_SMTP_LINK_AUTH: + m_msg(&m, imsg); + m_get_string(&m, &direction); + m_get_timeval(&m, &tv); + m_get_id(&m, &reqid); + m_get_string(&m, &username); + m_get_string(&m, &result); + m_end(&m); + + lka_report_smtp_link_auth(direction, &tv, reqid, username, result); + return; + case IMSG_REPORT_SMTP_TX_BEGIN: m_msg(&m, imsg); m_get_string(&m, &direction); |