diff options
author | Gilles Chehade <gilles@poolp.org> | 2019-06-24 17:53:58 +0200 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2019-06-24 17:53:58 +0200 |
commit | 5a81831fb4809b7220f057a1ee4dc242a40cac62 (patch) | |
tree | b98fe5f0ecf24eded9c061827d38913317d1156e | |
parent | fix Makefile (diff) | |
download | OpenSMTPD-5a81831fb4809b7220f057a1ee4dc242a40cac62.tar.xz OpenSMTPD-5a81831fb4809b7220f057a1ee4dc242a40cac62.zip |
sync
-rw-r--r-- | smtpd/mta_session.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/smtpd/mta_session.c b/smtpd/mta_session.c index 1e07b1fe..d07c997b 100644 --- a/smtpd/mta_session.c +++ b/smtpd/mta_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta_session.c,v 1.117 2019/06/14 19:55:25 eric Exp $ */ +/* $OpenBSD: mta_session.c,v 1.118 2019/06/24 15:14:01 gilles Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -165,8 +165,8 @@ void mta_hoststat_uncache(const char *, uint64_t); static struct tree wait_helo; static struct tree wait_ptr; static struct tree wait_fd; -static struct tree wait_ssl_init; -static struct tree wait_ssl_verify; +static struct tree wait_tls_init; +static struct tree wait_tls_verify; static struct runq *hangon; @@ -179,8 +179,8 @@ mta_session_init(void) tree_init(&wait_helo); tree_init(&wait_ptr); tree_init(&wait_fd); - tree_init(&wait_ssl_init); - tree_init(&wait_ssl_verify); + tree_init(&wait_tls_init); + tree_init(&wait_tls_verify); runq_init(&hangon, mta_on_timeout); init = 1; } @@ -1461,7 +1461,7 @@ mta_cert_init(struct mta_session *s) } if (cert_init(name, fallback, mta_cert_init_cb, s)) { - tree_xset(&wait_ssl_init, s->id, s); + tree_xset(&wait_tls_init, s->id, s); s->flags |= MTA_WAIT; } } @@ -1475,7 +1475,7 @@ mta_cert_init_cb(void *arg, int status, const char *name, const void *cert, char *xname = NULL, *xcert = NULL; if (s->flags & MTA_WAIT) - mta_tree_pop(&wait_ssl_init, s->id); + mta_tree_pop(&wait_tls_init, s->id); if (status == CA_FAIL && s->relay->pki_name) { log_info("%016"PRIx64" mta closing reason=ca-failure", s->id); @@ -1511,7 +1511,7 @@ mta_cert_verify(struct mta_session *s) } if (cert_verify(io_tls(s->io), name, fallback, mta_cert_verify_cb, s)) { - tree_xset(&wait_ssl_verify, s->id, s); + tree_xset(&wait_tls_verify, s->id, s); io_pause(s->io, IO_IN); s->flags |= MTA_WAIT; } @@ -1524,7 +1524,7 @@ mta_cert_verify_cb(void *arg, int status) int resume = 0; if (s->flags & MTA_WAIT) { - mta_tree_pop(&wait_ssl_verify, s->id); + mta_tree_pop(&wait_tls_verify, s->id); resume = 1; } |