From 4961b2a4b6cbd2d39c117a2f14c35a634fa7190e Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Thu, 6 Dec 2018 12:09:51 +0000 Subject: bring the first bits of DATA filtering plumbing but bypass it for now ok eric@ --- usr.sbin/smtpd/smtpd.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'usr.sbin/smtpd/smtpd.h') diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index 8dce4578043..a653888f4e1 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.575 2018/11/30 15:33:40 gilles Exp $ */ +/* $OpenBSD: smtpd.h,v 1.576 2018/12/06 12:09:50 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -315,6 +315,12 @@ enum imsg_type { IMSG_SMTP_REPORT_PROTOCOL_CLIENT, IMSG_SMTP_REPORT_PROTOCOL_SERVER, + IMSG_SMTP_FILTER_BEGIN, + IMSG_SMTP_FILTER_END, + IMSG_SMTP_FILTER_PROTOCOL, + IMSG_SMTP_FILTER_DATA_BEGIN, + IMSG_SMTP_FILTER_DATA_END, + IMSG_MTA_REPORT_LINK_CONNECT, IMSG_MTA_REPORT_LINK_DISCONNECT, IMSG_MTA_REPORT_LINK_TLS, @@ -325,8 +331,6 @@ enum imsg_type { IMSG_MTA_REPORT_PROTOCOL_CLIENT, IMSG_MTA_REPORT_PROTOCOL_SERVER, - IMSG_SMTP_FILTER, - IMSG_CA_PRIVENC, IMSG_CA_PRIVDEC }; @@ -1319,7 +1323,11 @@ void lka_report_smtp_protocol_server(const char *, time_t, uint64_t, const char /* lka_filter.c */ -void lka_filter(uint64_t, enum filter_phase, const char *, const char *); +void lka_filter_begin(uint64_t); +void lka_filter_end(uint64_t); +void lka_filter_protocol(uint64_t, enum filter_phase, const char *, const char *); +void lka_filter_data_begin(uint64_t); +void lka_filter_data_end(uint64_t); int lka_filter_response(uint64_t, const char *, const char *); -- cgit v1.2.3