summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2015-12-11 07:51:38 +0000
committergilles <gilles@openbsd.org>2015-12-11 07:51:38 +0000
commitbc10b95ac05c58f1abc38ad3dbc7c1bf7b9217a8 (patch)
tree1b4e7df3334f639dc1ef176262db1f44191bd911
parentprepare smtpd.h for masquerading (diff)
downloadwireguard-openbsd-bc10b95ac05c58f1abc38ad3dbc7c1bf7b9217a8.tar.xz
wireguard-openbsd-bc10b95ac05c58f1abc38ad3dbc7c1bf7b9217a8.zip
add filter.c prototypes, unused for now
-rw-r--r--usr.sbin/smtpd/smtpd.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index 64e32022690..1aceaf1efc9 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.495 2015/12/11 07:48:33 gilles Exp $ */
+/* $OpenBSD: smtpd.h,v 1.496 2015/12/11 07:51:38 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1185,6 +1185,18 @@ int expand_to_text(struct expand *, char *, size_t);
RB_PROTOTYPE(expandtree, expandnode, nodes, expand_cmp);
+/* filter.c */
+void filter_postfork(void);
+void filter_configure(void);
+void filter_connect(uint64_t, const struct sockaddr *,
+ const struct sockaddr *, const char *, const char *);
+void filter_mailaddr(uint64_t, int, const struct mailaddr *);
+void filter_line(uint64_t, int, const char *);
+void filter_eom(uint64_t, int, size_t);
+void filter_event(uint64_t, int);
+void filter_build_fd_chain(uint64_t, int);
+
+
/* forward.c */
int forwards_get(int, struct expand *);
@@ -1221,9 +1233,11 @@ void mda_postfork(void);
void mda_postprivdrop(void);
void mda_imsg(struct mproc *, struct imsg *);
+
/* makemap.c */
int makemap(int, char **);
+
/* mailaddr.c */
int mailaddr_line(struct maddrmap *, const char *);
void maddrmap_init(struct maddrmap *);
@@ -1358,6 +1372,8 @@ void smtp_collect(void);
int smtp_session(struct listener *, int, const struct sockaddr_storage *,
const char *);
void smtp_session_imsg(struct mproc *, struct imsg *);
+void smtp_filter_response(uint64_t, int, int, uint32_t, const char *);
+void smtp_filter_fd(uint64_t, int);
/* smtpd.c */