-/* $OpenBSD: aliases.c,v 1.78 2020/04/28 21:46:43 eric Exp $ */
+/* $OpenBSD: aliases.c,v 1.79 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <limits.h>
#include <util.h>
#include "smtpd.h"
-/* $OpenBSD: bounce.c,v 1.84 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: bounce.c,v 1.85 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2009 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <pwd.h>
-#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: ca.c,v 1.39 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: ca.c,v 1.40 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/socket.h>
-#include <sys/tree.h>
-
-#include <imsg.h>
-#include <limits.h>
+#include <openssl/pem.h>
+#include <openssl/engine.h>
#include <pwd.h>
#include <signal.h>
-#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <openssl/ssl.h>
-#include <openssl/pem.h>
-#include <openssl/evp.h>
-#include <openssl/ecdsa.h>
-#include <openssl/rsa.h>
-#include <openssl/engine.h>
-#include <openssl/err.h>
-
#include "smtpd.h"
#include "log.h"
#include "ssl.h"
-/* $OpenBSD: compress_backend.c,v 1.9 2015/01/20 17:37:54 deraadt Exp $ */
+/* $OpenBSD: compress_backend.c,v 1.10 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2012 Charles Longeau <chl@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#include <imsg.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
-/* $OpenBSD: compress_gzip.c,v 1.12 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: compress_gzip.c,v 1.13 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#include <ctype.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <pwd.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <limits.h>
-
#include <zlib.h>
#include "smtpd.h"
-#include "log.h"
-
#define GZIP_BUFFER_SIZE 16384
-/* $OpenBSD: config.c,v 1.56 2021/05/26 07:05:50 eric Exp $ */
+/* $OpenBSD: config.c,v 1.57 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/resource.h>
-#include <event.h>
#include <ifaddrs.h>
-#include <imsg.h>
-#include <netdb.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <limits.h>
#include <string.h>
-#include <unistd.h>
-
-#include <openssl/ssl.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: control.c,v 1.127 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: control.c,v 1.128 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
#include <sys/stat.h>
-#include <sys/socket.h>
#include <sys/un.h>
#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
#include <pwd.h>
#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: crypto.c,v 1.9 2021/01/23 16:11:11 rob Exp $ */
+/* $OpenBSD: crypto.c,v 1.10 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2013 Gilles Chehade <gilles@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <openssl/evp.h>
-
+#include <string.h>
#define CRYPTO_BUFFER_SIZE 16384
-/* $OpenBSD: dict.c,v 1.7 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: dict.c,v 1.8 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/tree.h>
#include <stdlib.h>
#include <string.h>
-#include <limits.h>
#include "dict.h"
#include "log.h"
-/* $OpenBSD: dispatcher.c,v 1.4 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: dispatcher.c,v 1.5 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2014 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <inttypes.h>
#include <pwd.h>
#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
#include <unistd.h>
-#include <limits.h>
-#include <grp.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: dns.c,v 1.89 2019/09/18 11:26:30 eric Exp $ */
+/* $OpenBSD: dns.c,v 1.90 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/socket.h>
-#include <sys/tree.h>
-#include <sys/queue.h>
-#include <sys/uio.h>
#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <arpa/nameser.h>
-#include <netdb.h>
#include <asr.h>
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: enqueue.c,v 1.118 2020/03/18 20:17:14 eric Exp $ */
+/* $OpenBSD: enqueue.c,v 1.119 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2005 Henning Brauer <henning@bulabula.org>
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/socket.h>
-#include <sys/tree.h>
-#include <sys/stat.h>
-
#include <ctype.h>
#include <err.h>
#include <errno.h>
-#include <event.h>
-#include <grp.h>
-#include <imsg.h>
-#include <inttypes.h>
#include <pwd.h>
-#include <stdarg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
-/* $OpenBSD: envelope.c,v 1.48 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: envelope.c,v 1.49 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#include <netinet/in.h>
#include <arpa/inet.h>
#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <inttypes.h>
-#include <pwd.h>
-#include <limits.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
-#include <unistd.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: esc.c,v 1.5 2016/09/03 22:16:39 gilles Exp $ */
+/* $OpenBSD: esc.c,v 1.6 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2014 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/queue.h>
#include <sys/tree.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <stdio.h>
#include <limits.h>
+#include <stdio.h>
#include "smtpd-defines.h"
#include "smtpd-api.h"
-/* $OpenBSD: expand.c,v 1.31 2018/05/31 21:06:12 gilles Exp $ */
+/* $OpenBSD: expand.c,v 1.32 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2009 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "smtpd.h"
-#include "log.h"
static const char *expandnode_info(struct expandnode *);
-/* $OpenBSD: forward.c,v 1.39 2015/12/28 22:08:30 jung Exp $ */
+/* $OpenBSD: forward.c,v 1.40 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/stat.h>
-#include <ctype.h>
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <util.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: iobuf.c,v 1.15 2021/03/05 12:37:32 eric Exp $ */
+/* $OpenBSD: iobuf.c,v 1.16 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
#include <sys/uio.h>
#include <errno.h>
-/* $OpenBSD: ioev.c,v 1.47 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: ioev.c,v 1.48 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/socket.h>
#include <errno.h>
-/* $OpenBSD: limit.c,v 1.6 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: limit.c,v 1.7 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <limits.h>
#include <string.h>
#include "smtpd.h"
-#include "log.h"
void
limit_mta_set_defaults(struct mta_limits *limits)
-/* $OpenBSD: lka.c,v 1.246 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: lka.c,v 1.247 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/wait.h>
-#include <sys/uio.h>
-#include <netinet/in.h>
-
-#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <openssl/err.h>
-#include <openssl/ssl.h>
#include <pwd.h>
-#include <resolv.h>
-#include <limits.h>
#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include "smtpd.h"
#include "log.h"
-#include "ssl.h"
static void lka_imsg(struct mproc *, struct imsg *);
static void lka_shutdown(void);
-/* $OpenBSD: lka_filter.c,v 1.67 2021/01/23 16:11:11 rob Exp $ */
+/* $OpenBSD: lka_filter.c,v 1.68 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <netinet/in.h>
-
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <limits.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-/* $OpenBSD: lka_session.c,v 1.94 2020/12/31 08:27:15 martijn Exp $ */
+/* $OpenBSD: lka_session.c,v 1.95 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/wait.h>
-
-#include <netinet/in.h>
-
-#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <resolv.h>
-#include <pwd.h>
-#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
#endif
-#include <sys/types.h>
#include <sys/stat.h>
-#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <sysexits.h>
#include <unistd.h>
*/
#include <sys/types.h>
-#include <sys/stat.h>
-#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
-#include <limits.h>
-#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
+#include <time.h>
#include <unistd.h>
static void mboxfile_engine(const char *sender, const char *filename);
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/stat.h>
#include <sys/wait.h>
-#include <ctype.h>
#include <err.h>
#include <errno.h>
-#include <fcntl.h>
-#include <limits.h>
-#include <netdb.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
-/* $OpenBSD: mailaddr.c,v 1.4 2020/09/22 18:04:27 martijn Exp $ */
+/* $OpenBSD: mailaddr.c,v 1.5 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2015 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <limits.h>
#include <stdlib.h>
#include <string.h>
-/* $OpenBSD: makemap.c,v 1.74 2021/01/27 07:20:27 deraadt Exp $ */
+/* $OpenBSD: makemap.c,v 1.75 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/tree.h>
-#include <sys/queue.h>
-#include <sys/socket.h>
#include <ctype.h>
#include <db.h>
#include <err.h>
#include <errno.h>
-#include <event.h>
#include <fcntl.h>
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
-#include <limits.h>
#include <util.h>
#include "smtpd.h"
-/* $OpenBSD: mda.c,v 1.142 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: mda.c,v 1.143 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <pwd.h>
-#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
-#include <time.h>
#include <unistd.h>
-#include <limits.h>
#include <vis.h>
#include "smtpd.h"
-/* $OpenBSD: mda_mbox.c,v 1.2 2020/02/03 15:41:22 gilles Exp $ */
+/* $OpenBSD: mda_mbox.c,v 1.3 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <err.h>
#include <errno.h>
-#include <event.h>
#include <fcntl.h>
-#include <imsg.h>
#include <paths.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sysexits.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
-
void
mda_mbox(struct deliver *deliver)
{
-/* $OpenBSD: mda_unpriv.c,v 1.7 2020/06/01 05:21:30 chrisz Exp $ */
+/* $OpenBSD: mda_unpriv.c,v 1.8 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
#include <err.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <paths.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
-
void
mda_unpriv(struct dispatcher *dsp, struct deliver *deliver,
const char *pw_name, const char *pw_dir)
-/* $OpenBSD: mda_variables.c,v 1.6 2019/09/19 07:35:36 gilles Exp $ */
+/* $OpenBSD: mda_variables.c,v 1.7 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2011-2017 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <netinet/in.h>
-
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: mproc.c,v 1.38 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: mproc.c,v 1.39 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@faurot.net>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/tree.h>
-#include <sys/queue.h>
-#include <sys/uio.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <arpa/nameser.h>
-
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <limits.h>
#include <string.h>
#include <unistd.h>
-/* $OpenBSD: mta.c,v 1.239 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: mta.c,v 1.240 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <netdb.h>
-#include <limits.h>
-#include <pwd.h>
-#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <tls.h>
-#include <unistd.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: mta_session.c,v 1.142 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: mta_session.c,v 1.143 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/stat.h>
-#include <sys/uio.h>
-#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <netdb.h>
-#include <openssl/ssl.h>
-#include <pwd.h>
-#include <resolv.h>
-#include <limits.h>
-#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <tls.h>
#include <unistd.h>
#include "smtpd.h"
#include "log.h"
-#include "ssl.h"
#define MAX_TRYBEFOREDISABLE 10
-/* $OpenBSD: parse.y,v 1.288 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: parse.y,v 1.289 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
*/
%{
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <netinet/in.h>
-#include <arpa/inet.h>
+#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
-#include <event.h>
#include <ifaddrs.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <limits.h>
-#include <netdb.h>
-#include <pwd.h>
#include <resolv.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <util.h>
-#include <openssl/ssl.h>
-
#include "smtpd.h"
#include "ssl.h"
#include "log.h"
-/* $OpenBSD: parser.c,v 1.42 2020/01/06 11:02:38 gilles Exp $ */
+/* $OpenBSD: parser.c,v 1.43 2021/06/14 17:58:15 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/queue.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/if.h>
-#include <arpa/inet.h>
+#include <arpa/inet.h>
#include <err.h>
#include <inttypes.h>
#include <limits.h>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/tree.h>
#include <sys/un.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <limits.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
-#include "log.h"
#include "smtpd.h"
-
+#include "log.h"
/*
* The PROXYv2 protocol is described here:
-/* $OpenBSD: queue.c,v 1.192 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: queue.c,v 1.193 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#include <event.h>
-#include <imsg.h>
#include <inttypes.h>
#include <pwd.h>
#include <signal.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: queue_backend.c,v 1.67 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: queue_backend.c,v 1.68 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#include <ctype.h>
#include <errno.h>
-#include <event.h>
#include <fcntl.h>
#include <grp.h>
-#include <imsg.h>
-#include <limits.h>
#include <inttypes.h>
#include <pwd.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
#include "smtpd.h"
-/* $OpenBSD: queue_fs.c,v 1.21 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: queue_fs.c,v 1.22 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
#include <sys/types.h>
#include <sys/mount.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/stat.h>
-#include <ctype.h>
#include <dirent.h>
#include <errno.h>
-#include <event.h>
#include <fcntl.h>
#include <fts.h>
-#include <imsg.h>
#include <inttypes.h>
#include <pwd.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
#include "smtpd.h"
-/* $OpenBSD: queue_null.c,v 1.9 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: queue_null.c,v 1.10 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <inttypes.h>
-#include <pwd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <unistd.h>
-#include <limits.h>
-
#include "smtpd.h"
-#include "log.h"
static int
queue_null_message_create(uint32_t *msgid)
-/* $OpenBSD: queue_proc.c,v 1.8 2018/12/30 23:09:58 guenther Exp $ */
+/* $OpenBSD: queue_proc.c,v 1.9 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#include <ctype.h>
#include <errno.h>
-#include <event.h>
#include <fcntl.h>
-#include <imsg.h>
-#include <inttypes.h>
-#include <pwd.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <time.h>
-#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: queue_ram.c,v 1.10 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: queue_ram.c,v 1.11 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/stat.h>
-#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <inttypes.h>
-#include <pwd.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: report_smtp.c,v 1.11 2020/01/07 23:03:37 gilles Exp $ */
+/* $OpenBSD: report_smtp.c,v 1.12 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/uio.h>
-
-#include <netinet/in.h>
-
-#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <limits.h>
-#include <inttypes.h>
-#include <openssl/ssl.h>
-#include <resolv.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <vis.h>
-
#include "smtpd.h"
-#include "log.h"
-#include "ssl.h"
-#include "rfc5322.h"
void
report_smtp_link_connect(const char *direction, uint64_t qid, const char *rdns, int fcrdns,
-/* $OpenBSD: resolver.c,v 1.6 2020/12/23 15:42:03 eric Exp $ */
+/* $OpenBSD: resolver.c,v 1.7 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2017-2018 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/socket.h>
-#include <sys/tree.h>
-#include <sys/queue.h>
+
#include <netinet/in.h>
#include <asr.h>
-#include <ctype.h>
#include <errno.h>
-#include <imsg.h>
-#include <limits.h>
-#include <stdarg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: rfc5322.c,v 1.2 2018/10/24 18:59:29 gilles Exp $ */
+/* $OpenBSD: rfc5322.c,v 1.3 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2018 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
-/* $OpenBSD: ruleset.c,v 1.47 2019/11/25 14:18:33 gilles Exp $ */
+/* $OpenBSD: ruleset.c,v 1.48 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2009 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <netinet/in.h>
-
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
#include <string.h>
-#include <limits.h>
#include "smtpd.h"
-#include "log.h"
#define MATCH_RESULT(r, neg) ((r) == -1 ? -1 : ((neg) < 0 ? !(r) : (r)))
-/* $OpenBSD: runq.c,v 1.3 2019/06/14 19:55:25 eric Exp $ */
+/* $OpenBSD: runq.c,v 1.4 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2013,2019 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/uio.h>
-
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <limits.h>
-#include <time.h>
#include "smtpd.h"
-/* $OpenBSD: scheduler.c,v 1.61 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: scheduler.c,v 1.62 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#include <ctype.h>
-#include <dirent.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <inttypes.h>
#include <pwd.h>
#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: scheduler_backend.c,v 1.17 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: scheduler_backend.c,v 1.18 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <limits.h>
#include "smtpd.h"
-#include "log.h"
extern struct scheduler_backend scheduler_backend_null;
extern struct scheduler_backend scheduler_backend_proc;
-/* $OpenBSD: scheduler_null.c,v 1.10 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: scheduler_null.c,v 1.11 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <limits.h>
-
#include "smtpd.h"
static int scheduler_null_init(const char *);
-/* $OpenBSD: scheduler_proc.c,v 1.8 2015/12/05 13:14:21 claudio Exp $ */
+/* $OpenBSD: scheduler_proc.c,v 1.9 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
-#include <limits.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: scheduler_ramqueue.c,v 1.46 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: scheduler_ramqueue.c,v 1.47 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <limits.h>
-#include <time.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: smtp.c,v 1.170 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: smtp.c,v 1.171 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <netdb.h>
-#include <pwd.h>
-#include <signal.h>
-#include <limits.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <tls.h>
#include <unistd.h>
-#include <openssl/ssl.h>
-
#include "smtpd.h"
#include "log.h"
#include "ssl.h"
-/* $OpenBSD: smtp_client.c,v 1.15 2021/03/05 12:37:32 eric Exp $ */
+/* $OpenBSD: smtp_client.c,v 1.16 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2018 Eric Faurot <eric@openbsd.org>
#include <errno.h>
#include <limits.h>
#include <resolv.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-/* $OpenBSD: smtp_session.c,v 1.430 2021/05/20 07:33:32 eric Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.431 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/uio.h>
-
-#include <netinet/in.h>
-
#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <limits.h>
#include <inttypes.h>
-#include <openssl/ssl.h>
-#include <resolv.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tls.h>
#include "smtpd.h"
#include "log.h"
-#include "ssl.h"
#include "rfc5322.h"
#define SMTP_LINE_MAX 65535
-/* $OpenBSD: smtpc.c,v 1.17 2021/05/23 15:57:32 eric Exp $ */
+/* $OpenBSD: smtpc.c,v 1.18 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2018 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/socket.h>
#include <event.h>
-#include <limits.h>
#include <netdb.h>
#include <pwd.h>
-#include <resolv.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-/* $OpenBSD: smtpctl.c,v 1.168 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.169 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
#include <sys/un.h>
-#include <sys/wait.h>
#include <sys/stat.h>
#include <err.h>
#include <errno.h>
-#include <event.h>
#include <fts.h>
-#include <grp.h>
-#include <imsg.h>
#include <inttypes.h>
#include <pwd.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#include <time.h>
#include <unistd.h>
#include <vis.h>
-#include <limits.h>
#include "smtpd.h"
#include "parser.h"
-/* $OpenBSD: smtpd.c,v 1.339 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: smtpd.c,v 1.340 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/stat.h>
-#include <sys/uio.h>
-#include <sys/mman.h>
#include <bsd_auth.h>
#include <dirent.h>
#include <errno.h>
-#include <event.h>
#include <fcntl.h>
#include <fts.h>
#include <grp.h>
-#include <imsg.h>
#include <inttypes.h>
-#include <login_cap.h>
#include <paths.h>
#include <poll.h>
#include <pwd.h>
#include <signal.h>
-#include <stdio.h>
#include <syslog.h>
-#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
-#include <time.h>
#include <tls.h>
#include <unistd.h>
-#include <openssl/ssl.h>
-#include <openssl/evp.h>
-
#include "smtpd.h"
#include "log.h"
#include "ssl.h"
-/* $OpenBSD: smtpd.h,v 1.668 2021/04/21 07:54:10 eric Exp $ */
+/* $OpenBSD: smtpd.h,v 1.669 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
#endif
-#include <netinet/in.h>
-#include <netdb.h>
+#include <sys/queue.h>
+#include <sys/tree.h>
+#include <sys/socket.h>
+
#include <event.h>
+#include <imsg.h>
+#include <limits.h>
+#include <netdb.h>
+#include <stdio.h>
#include "smtpd-defines.h"
#include "smtpd-api.h"
#include <sys/socket.h>
#include <sys/tree.h>
-#include <arpa/inet.h>
-#include <arpa/nameser.h>
#include <netinet/in.h>
-#include <netdb.h>
+#include <arpa/inet.h>
#include <asr.h>
#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <event.h>
-#include <imsg.h>
#include <limits.h>
+#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <strings.h>
#include <unistd.h>
#include "smtpd-defines.h"
-/* $OpenBSD: srs.c,v 1.4 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: srs.c,v 1.5 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2019 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
-#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <inttypes.h>
-#include <netdb.h>
-#include <limits.h>
-#include <pwd.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <unistd.h>
-
#include <openssl/sha.h>
+#include <string.h>
#include "smtpd.h"
-#include "log.h"
static uint8_t base32[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
-/* $OpenBSD: ssl.c,v 1.95 2021/05/26 07:05:50 eric Exp $ */
+/* $OpenBSD: ssl.c,v 1.96 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/stat.h>
-#include <ctype.h>
-#include <event.h>
#include <fcntl.h>
-#include <imsg.h>
#include <limits.h>
-#include <pwd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <openssl/ssl.h>
#include <openssl/engine.h>
#include <openssl/err.h>
-#include <openssl/rsa.h>
-#include <openssl/ecdsa.h>
-#include <openssl/dh.h>
-#include <openssl/bn.h>
+#include <openssl/ssl.h>
+#include <string.h>
+#include <unistd.h>
#include "log.h"
#include "ssl.h"
-/* $OpenBSD: stat_backend.c,v 1.11 2018/12/27 10:35:26 gilles Exp $ */
+/* $OpenBSD: stat_backend.c,v 1.12 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <string.h>
-#include <limits.h>
-
-#include "log.h"
#include "smtpd.h"
extern struct stat_backend stat_backend_ramstat;
-/* $OpenBSD: stat_ramstat.c,v 1.11 2018/05/31 21:06:12 gilles Exp $ */
+/* $OpenBSD: stat_ramstat.c,v 1.12 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <limits.h>
#include "smtpd.h"
-#include "log.h"
-
static void ramstat_init(void);
static void ramstat_close(void);
-/* $OpenBSD: table.c,v 1.49 2020/12/23 08:12:14 martijn Exp $ */
+/* $OpenBSD: table.c,v 1.50 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/stat.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
#include <net/if.h>
+#include <arpa/inet.h>
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <regex.h>
-#include <limits.h>
+#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: table_db.c,v 1.23 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: table_db.c,v 1.24 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
#include <db.h>
-#include <ctype.h>
-#include <event.h>
#include <fcntl.h>
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "smtpd.h"
#include "log.h"
-
/* db(3) backend */
static int table_db_config(struct table *);
static int table_db_update(struct table *);
-/* $OpenBSD: table_getpwnam.c,v 1.13 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: table_getpwnam.c,v 1.14 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
#include <pwd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <limits.h>
-#include <string.h>
#include "smtpd.h"
-#include "log.h"
-
/* getpwnam(3) backend */
static int table_getpwnam_config(struct table *);
-/* $OpenBSD: table_proc.c,v 1.16 2019/10/03 04:51:15 gilles Exp $ */
+/* $OpenBSD: table_proc.c,v 1.17 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <paths.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <limits.h>
-#include <unistd.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: table_static.c,v 1.32 2018/12/28 14:21:02 eric Exp $ */
+/* $OpenBSD: table_static.c,v 1.33 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
#include <ctype.h>
#include <errno.h>
-
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <limits.h>
#include <string.h>
#include "smtpd.h"
-/* $OpenBSD: to.c,v 1.47 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: to.c,v 1.48 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-#include <sys/resource.h>
-
-#include <netinet/in.h>
#include <arpa/inet.h>
-
#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
-#include <imsg.h>
-#include <limits.h>
-#include <inttypes.h>
-#include <netdb.h>
-#include <pwd.h>
-#include <stdarg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#if IO_TLS
#include <tls.h>
#endif
-#include <unistd.h>
#include "smtpd.h"
#include "log.h"
-/* $OpenBSD: tree.c,v 1.7 2021/05/26 18:08:55 eric Exp $ */
+/* $OpenBSD: tree.c,v 1.8 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/tree.h>
#include <inttypes.h>
#include <stdlib.h>
-#include <limits.h>
#include "tree.h"
#include "log.h"
-/* $OpenBSD: unpack_dns.c,v 1.1 2018/01/06 07:57:53 sunil Exp $ */
+/* $OpenBSD: unpack_dns.c,v 1.2 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2011-2014 Eric Faurot <eric@faurot.net>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <arpa/inet.h>
-
#include <string.h>
#include "unpack_dns.h"
-/* $OpenBSD: unpack_dns.h,v 1.1 2018/01/06 07:57:53 sunil Exp $ */
+/* $OpenBSD: unpack_dns.h,v 1.2 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2011-2014 Eric Faurot <eric@faurot.net>
#include <netinet/in.h>
-#include <arpa/inet.h>
#include <arpa/nameser.h>
struct unpack {
-/* $OpenBSD: util.c,v 1.153 2021/03/31 19:09:19 eric Exp $ */
+/* $OpenBSD: util.c,v 1.154 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2000,2001 Markus Friedl. All rights reserved.
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/socket.h>
#include <sys/stat.h>
-#include <sys/resource.h>
#include <netinet/in.h>
-#include <arpa/inet.h>
+#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
#include <fts.h>
-#include <imsg.h>
-#include <inttypes.h>
#include <libgen.h>
-#include <netdb.h>
-#include <pwd.h>
-#include <limits.h>
#include <resolv.h>
#include <stdarg.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#include <time.h>
#include <unistd.h>
#include "smtpd.h"
-/* $OpenBSD: waitq.c,v 1.6 2018/05/31 21:06:12 gilles Exp $ */
+/* $OpenBSD: waitq.c,v 1.7 2021/06/14 17:58:16 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/queue.h>
-#include <sys/tree.h>
-#include <sys/uio.h>
-
-#include <imsg.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <limits.h>
#include "smtpd.h"